Java OOP concepts

Java OOP concepts

Object-Oriented Programming is a methodology to design a program using classes and objects. Java uses OOP.
Object – an entity that has state and behavior is known as an object
classes – Collection of objects is called class.

Polymorphism – When one task is performed by different ways or ability of an object to take on many forms.
Abstraction – Hiding internal details and showing functionality is known as abstraction.
Encapsulation – is a process of binding or wrapping the data with the code.
Inheritance – When one object acquires all the properties and behaviors of parent object. It helps on code re-usability.