Encapsulation
- Self-containment
- Inner workings are hidden from the outside world
- Implemented through a Class
Inheritance
- Reuse
- A new user-defined type can be created as an extension of an existing type
- The new class is called a sub or derived class, the one it extends is the super class
- The information and behavior of the super class is present in the sub class, along with its own features
Polymorphism
- Same name taking different forms
- Doing the right thing based on the call
No comments:
Post a Comment
Note: only a member of this blog may post a comment.