Question: I is an Interface A is an abstract class B is a superclass C is a class that inherits from B D is a class
I is an Interface
A is an abstract class
B is a superclass
C is a class that inherits from B
D is a class that inherits from C
Indicate for each of the instantiations below whether it is a valid or invalid instantiation.
Assume they are all part of the same hierarchy.
Group of answer choices
A a new A;
Invalid
A a new B;
Valid
I i new A;
Invalid
B b new A;
Invalid
B b new C;
Valid
C c new B;
Invalid
I i new I;
Invalid
I i new B;
Valid
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
