Advertisements
Advertisements
Question
What are the advantages of OOPs?
Short Note
Solution
Reusability: “Write once and use it multiple times” you can achieve this by using class. Redundancy: Inheritance is a good feature for data redundancy. If you need the same functionality in multiple classes you can write a common class for the same functionality and inherit that class to sub-class.
Easy Maintenance: It is easy to maintain and modify existing code as new objects can be created with small differences to existing ones.
Security: Using data hiding and abstraction only necessary data will be provided thus maintains the security of data.
shaalaa.com
Advantages of OOP
Is there an error in this question or solution?