What is Inheritance | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

What is Inheritance

10th Nov 2016, 5:44 PM
David Kariuki
David Kariuki - avatar
4 Answers
+ 9
Inheritance refers to a feature of Java programming that lets you create classes that are derived from other classes. A class that's based on another class inherits the other class. The class that is inherited is the parent class, the base class, or the superclass.
10th Nov 2016, 5:44 PM
David Kariuki
David Kariuki - avatar
+ 3
Inheritance is a feature of object oriented programming. It lets you inherit(take) the functions and variables in a class(base class) and use them in another class(derived class) without defining them again in the derived class.
17th Nov 2016, 4:56 PM
Ishpreet Singh Bindra
Ishpreet Singh Bindra - avatar
+ 3
simply when a child class inherit properties, and features from a parent class. using C#, this language supports single inheritance between the BASE (parent) class and the DERIVED (child) class.
18th Nov 2016, 6:31 PM
Silvanus Justice Silvanus
Silvanus Justice Silvanus - avatar
0
inheritance is the imp feature of c++ from which we can reuse the code insted of retyping it again. there are mostly 5 types of inheritance.. 1.single 2.multiple 3.multilevel 4.herachical and 5.Hybrid inheritance.
19th Nov 2016, 3:32 AM
Arun Vishwakarma
Arun Vishwakarma - avatar