OOPS concepts in Java are the main ideas behind Java's Object Oriented Programming. They are abstraction, encapsulation, inheritance, and polymorphism.
List of OOP Concepts in Java:
The four main OOP concepts in Java that are commonly used in java programing. these are:
Abstraction:
Hide internal implementation and just highlet the set of services that is the concept of abstraction.
advantage:
Encapsulation:
Process of binding data and correspondence behaviour in a single unit.
Data member + Behavior(methods) = Encapsulation.
advantage:
Inheritance:
Inheritance is an important feature of OOP(Object Oriented Programming). It is the mechanism in java by which one Parent class is allow to inherit the behaviours and methods of child class or sub class.
advantage:
class child class extends parent class
{
//behaviours and methods
}
Polymorphism:
Polymorphism is the concept that variety types of objects may be able to work in a difeerent way in given situation.
In java, method overloading and method overriding are two properties they use polymorphism.