posted 10 years ago
The following question was taken from a Whizlabs exam.
68. Which two are wrong? (Choose two options.)
A. If abstract class B directly extends abstract class A, class B must implement all abstract methods declared in A.
B. An abstract class CANNOT be instantiated.
C. An interface can extend multiple interfaces.
D. All methods in an abstract class must be abstract.
E. If concrete class C extends concrete class B, and B implements interface A, then all methods from interface A can be invoked on an instance of C.
Answer : A, D
For option E) which was not one of the answers, I wanted to know if the following code would be an accurate "code implementation" of the verbal description.
Please confirm.