OOP using simple examples | Part 1 Encapsulation
In here we are going to explain 4 major OOP concepts in a simple way,
we all know about capsule which we used as a medicine. A capsule we used to cure our disease. Actually as patients we do not need know how it works and what are the things inside the capsule. So manufactures include so many chemicals in side that capsule and they hide those chemicals from user. Because user do not need to know about the inside process.
Like that as programmers we use Encapsulation to hide all classes, functions and variables etc from end user.
- Encapsulations
- Polymorphism
- Inheritance
- Abstraction
we all know about capsule which we used as a medicine. A capsule we used to cure our disease. Actually as patients we do not need know how it works and what are the things inside the capsule. So manufactures include so many chemicals in side that capsule and they hide those chemicals from user. Because user do not need to know about the inside process.
Like that as programmers we use Encapsulation to hide all classes, functions and variables etc from end user.
Comments
Post a Comment