Asked by NIDHI THOMAS on Jun 11, 2024
Verified
Inheritance is the process by which a new class - known as a _________ - is created from another class,called the _____________.
A) base class,derived class
B) derived class,base class
C) inherited class,base class
D) base class,inherited class
Derived Class
A class in object-oriented programming that inherits methods and properties from another class, known as the base or parent class.
Base Class
A class from which other classes are derived, also known as a parent or superclass.
- Absorb the idea of a base class and its interactions with derived classes.
- Absorb the principles of how inheritance enables the carrying over of attributes and methods from the base class.
Verified Answer
JR
Justin ReyesJun 14, 2024
Final Answer :
B
Explanation :
The new class created from another class is called the derived class and the existing class from which the new class is created is called the base class. Therefore, option B is the correct answer.
Learning Objectives
- Absorb the idea of a base class and its interactions with derived classes.
- Absorb the principles of how inheritance enables the carrying over of attributes and methods from the base class.