1. ___________________________________, it is known as hierarchical inheritance.
2. Below is a list of the types of inheritance. What is a definition of Multilevel inheritance?
3. Java does not support multiple and hybrid inheritance through classes. However, we can achieve multiple inheritance in Java through _______.
4. Here is an inheritance hierarchy of _______. A Venus fly trap is-a Plant and a _________of Plant.
5. One of the main reasons to use an inheritance hierarchy is that the instance variables and methods from a superclass are __________________.
6. A superclass reference variable can hold an object of that superclass or of any of its subclasses. For example, a Shape reference variable can hold _____________________.
7. A Square reference can hold a Shape object because all Shapes are Squares.
8. The code below will give an ?Incompatible types: Shape cannot be converted to Square? error.
9. Given the above context, you ____________________________.
10. A class Pupil inherits from the superclass Human. Which of the following assignment statements will give a compiler error?
11. Given the above example, which of the following is correct:
12. ________ an inheritance hierarchy is that we can write methods with parameters of the superclass type and pass in subclass objects to them.
13. If class B is subclassed from class A then which of the following is the correct syntax?
14. The concept of multiple inheritance is implemented in java by ?
15. What is the output of the following?