हिंदी

What is inheritance? - Computer Science 1

Advertisements
Advertisements

प्रश्न

What is inheritance?

What do you understand by 'Inheritance'? 

लघु उत्तरीय

उत्तर १

Inheritance is one of the most important features of Object-Oriented Programming. In object-oriented programming, inheritance enables a new class and its objects to take on the properties of the existing classes. 

shaalaa.com

उत्तर २

The process of deriving a new class from an existing one is known as inheritance. The previous class is referred to as the base class, whereas the new class is known as the derived class. C++ heavily promotes the idea of reusability. Once a class is built and tested, it can be customized by other programmers to meet their needs. This involves developing new classes and reusing old properties. Tested class functions and variables can be accessed by objects from other classes. This is referred to as inheritance. 

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 16: Inheritance - Evaluation - Section - B [पृष्ठ २७३]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
अध्याय 16 Inheritance
Evaluation - Section - B | Q 1. | पृष्ठ २७३
अविचल Computer Applications [English] Class 10 ICSE
अध्याय 1.01 Introduction to Object Oriented Programming Concepts
Review Insight | Q 9. | पृष्ठ ७
अविचल Computer Applications [English] Class 10 ICSE
अध्याय 8 Encapsulation and Inheritance
EXERCISES | Q V. 5. | पृष्ठ ४४६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×
Our website is made possible by ad-free subscriptions or displaying online advertisements to our visitors.
If you don't like ads you can support us by buying an ad-free subscription or please consider supporting us by disabling your ad blocker. Thank you.