A CLASS THAT INHERITS PROPERTIES FROM SOME OTHER CLASS IS CALLED...............
Answers
Answered by
0
Answer:
SUBCLASS
Explanation:
The class which inherits the properties of other is known as subclass (derived class, child class) and the class whose properties are inherited is known as superclass (base class, parent class)
Answered by
0
A class that inherits properties from some other class is called Sub Class or Child Class.
Inheritance :
- It is one of the principles of OOPs i.e. Object Oriented Programming.
- Inheritance is a mechanism to solve the problem of multiple classes having the same base implementation that is common and additional different properties.
- To avoid this duplicity and maintain a single source of truth, we define the common implementation in a Parent Class.
- All other classes are Child or Sub Class of the Parent Class using Inheritance.
- The Child class inherits the base properties of its parent and can also have unique other properties defined within it.
- Thus, by this, any change in the base common implementation needs to be done at a single place i.e. the Parent Class.
- Thus, Inheritance extends methods and properties from the Parent Class to the Child Class using the 'extend' keyword.
- The class inheriting properties from its parent is called Sub Class or Child Class or Derived Class.
Hence, Using Inheritance the Clid Class inherits and extends properties from another class called the Parent Class.
To learn more about Inheritance, visit
https://brainly.in/question/62148
#SPJ6
Similar questions
Math,
4 months ago
Social Sciences,
4 months ago
Math,
4 months ago
Chemistry,
9 months ago
Hindi,
1 year ago