Advertisements
Advertisements
प्रश्न
What are the advantages of OOPs?
टिप्पणी लिखिए
उत्तर
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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?