OOP Concepts
- Object
Form or entity.
- Class
Blueprint of object.
- Inheritance
Child have all properties (field, method) and behaviors of parents.
- Polymorphism
One form can be change to another form.
- Abstraction
Hiding internal details and showing functionality is known as abstraction.
- Encapsulation
This is the practice of keeping fields within a class private, then providing access to them via public methods. It’s a protective barrier that keeps the data and code safe within the class itself.
- Cosntructor
Method first time called when class has instantied.
-
Overriding and Overloading
a. Overriding : Same method in class and extends class
b. Overloading : Same method different parameters