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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?