English

What is inheritance? - Computer Science 1

Advertisements
Advertisements

Questions

What is inheritance?

What do you understand by 'Inheritance'? 

Short Answer

Solution 1

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

Solution 2

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
  Is there an error in this question or solution?
Chapter 16: Inheritance - Evaluation - Section - B [Page 273]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 11 TN Board
Chapter 16 Inheritance
Evaluation - Section - B | Q 1. | Page 273
Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.01 Introduction to Object Oriented Programming Concepts
Review Insight | Q 9. | Page 7
Avichal Computer Applications [English] Class 10 ICSE
Chapter 8 Encapsulation and Inheritance
EXERCISES | Q V. 5. | Page 446
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×