Object-Oriented Programming (OOP) in Java.

In Java, OOP concepts include abstraction, encapsulation, inheritance and polymorphism. OOP provides a clear structure for the programs.

Code :