1 - Object Oriented Programming
1 - Object Oriented Programming
2. Programs are divided into what are known as Objects. Method Method
3. Data structures are designed such that they characterize the objects. Fig: Object + Method
4. Methods that operate on the data of an object are tied together in the data structure.
5. Data is hidden and cannot be accessed by external functions.
6. Objects may communicate with each other through methods.
7. New data and methods can be easily added whenever necessary.
8. Follows bottom-up approach in program design.
• In OOP the concept of inheritance provides the idea of reusability. It means that we can add
additional features to a n existing class without modifying it. This is possible by deriving a
new class from the existing one.
Fig: Polymorphism