Question: Chapter 8: Inheritance Multiple Choice Questions: 1) The process of inheritance should establish a(n) relationship a) is-a b) has-a c) static d) not-a e) none

Chapter 8: Inheritance Multiple Choice Questions: 1) The process of inheritance should establish a(n) relationship a) is-a b) has-a c) static d) not-a e) none of the above 2) The original class that is used to derive a new class using inheritance is called a) a superclass b) a parent class c) a base class d) all of the above e) neither a, b, nor o 3) The derived class created using inheritance is called a) a child class b) a superclass c) a parent class d) all of the above e) neither a, b, nor c 4) In order for derived classed to have access to encapsulated data members and methods of and methods should be declared using the modifier a) private b) public c) protected d) final e) static 5) The special reference is used to refer to the parent class in a child o a) this b) super c) null d) parent e) none of the above 6) When a variable is declared in a subclass has the same name as a variable declared in a s variable a) final b) shadow
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
