Inheritance-
Inheritance is a mechanism in which one class acquires the property of another class.
In OOP that is exactly what we are able to accomplish and it is known to have a lot of benefits such as :
- Easy code maintenance
- Frees up our system resources
- Easier to debug
- Makes the application much more easier to scale
- Code re-usability and ease of testing
Abstraction-
An abstraction handles complexity by hiding unnecessary details from user.
Encapsulation is an Object Oriented Programming concept that binds together the data function that manipulate the data, and that keep both safe from outside interface and misuse.
The benefits of encapsulation are very similar to the ones we discussed already
- Easy code maintenance, debugging & testing
- Re-usable chucks of code with no outside interference
- Makes the application much more easier to scale
is a ability of an object to take many forms.
This was meant to be an overview and introduction to how Object Oriented Programming works.Understanding those four pillars will help you to design better apps that are easy to maintain,scale,test and debug.
No comments:
Post a Comment
Feel free to ask me for any query regarding my post