What does inheritance allows you to do?
a) Code re-usuability
b) create a hierarchy of classes
c) Efficiency of code
d) All of the mentioned
Answers
Answered by
0
Answer:
Heyaa
Explanation:
Ans : d All of the mentioned
Answered by
0
Inheritance
Explanation:
- In the given question, Option d, that is "All of the mentioned" is correct.
- The process of driving a new class from an old class is called inheritance. This process provides all of the given features, which are defined in the question.
- In inheritance, the reusable code is the use of a similar code in multiple functions.
- It inherits multiple classes, that why it, provides the creation of the class structure.
- by inheriting multiple classes, it provides code efficiently.
Learn more:
- Inheritance: https://brainly.in/question/62148
- Program: https://brainly.in/question/14448001
Similar questions
Hindi,
5 months ago
Accountancy,
5 months ago
Math,
11 months ago
Chemistry,
1 year ago
Math,
1 year ago