Which of the following inheritance is/are not supported by Java?
Multi-level Inheritance
Hierarchical Inheritance
Single Inheritance
Multiple Inheritance
Answer: Multiple inheritance
Answers
Answered by
0
Explanation:
Explanation: Since java doesn't support multiple inheritance, it is not possible for a class to inherit more than 1 class in java. This is the same case in C# also. 15. If multi-level inheritance is used, First class B inherits class A, then C inherits B and so on.
Answered by
0
Answer:
Multiple Inheritance is not supported by Java.
Explanation:
- Java doesn't support multiple inheritance using classes.
- Multiple Inheritance is a feature of an object-oriented concept, where a class can inherit properties of more than one parent class.
- The problem occurs when there exist methods with the same signature in both the superclasses and subclass.
- Multilevel Inheritance occurs when a class extends a class that extends another class.
- The type of inheritance in which more than one derived class inherits the properties of the same base class is called hierarchical inheritance.
- There are multiple child classes and a single parent class.
- Single Inheritance allows a derived class to inherit the properties and behavior of a base class, thus enabling code reusability as well as adding new features to the existing code.
#SPJ3
Similar questions