- Encapsulation
- Inheritance
- Polymorphism
- Abstraction
Encapsulation:
- Encapsulation is the mechanism that binds together code and the data it manipulates and keeps both safe from outside interference and misuse.
Inheritance:
- Inheritance is the process by which one object acquire the properties of another object.
Polymorphism:
- Polymorphism provides a way to take more than one form.
- Two types of Polymorphism.
1. Compile Time Polymorphism (Overloading)
2. Run Time Polymorphism (Overriding)Abstraction:
- Abstraction allows user to view only the essential features without knowing the background details.
- In other sense we can say that, it deals with the outside view of an object (interface).
No comments:
Post a Comment