Quick notes on OOPL in Java
Polymorphism
It is the capability of an action or method to do different things based on the object that it is acting upon.
Three types of Polymorphism in Java
This is the capability of a class to use the properties and methods of another class while assing its own functionality.
Java uses extends keyword.
Interfaces
Abstract Classes
Encapsulation
It is the ability of an object to be a contained for related properties and methods(function)
POJOS, bean classes.
- OOP- Directly represents real time objects
- PIE (Polymorphism, Inheritance, Encapsulation) - are the 3 pillars of OOPL
Polymorphism
It is the capability of an action or method to do different things based on the object that it is acting upon.
Three types of Polymorphism in Java
- Overlaoding
- Overriding
- Dynamic Method Binding
This is the capability of a class to use the properties and methods of another class while assing its own functionality.
Java uses extends keyword.
Interfaces
Abstract Classes
Encapsulation
It is the ability of an object to be a contained for related properties and methods(function)
POJOS, bean classes.