CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
6
You visited us 6 times! Enjoying our articles? Unlock Full Access!
Question

Which of the following is a type of inheritance?

A
Multiple
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Multi level
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Hierarchical
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
All of these
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D All of these

Type of inheritance:-

Inheritance:- Inheritance is the process of creating a new Class, called the Derived Class, from the existing class, called the Base Class.

Multiple:- In this type of inheritance a single derived class may inherit from two or more than two base classes.

Multi level:- In this type of inheritance the derived class inherits from a class, which in turn inherits from some other class. The Super class for one, is sub class for the other.

Hierarchical:- In this type of inheritance, multiple derived classes inherits from a single base class.



910208_917087_ans_39b77d67a75548b89e34eb7cd6b486f5.PNG

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Art of Clay and Terracotta Work
HISTORY
Watch in App
Join BYJU'S Learning Program
CrossIcon