About Question enthuware.ocajp.i.v8.2.836 :
Posted: Sat Feb 04, 2017 2:49 pm
The first option and given correct choice is: An abstract class can be extended by an abstract or a concrete class. This statement to be a correct choice the code must look like this: <<abstract class or concrete class>> extends <<abstract class>> {}. So far so good.
The 2 nd option and given correct choice is: A concrete class can be extended by an abstract or a concrete class. This statement codified would look like this: <<abstract class or concrete class>> extends <<concrete class>> {}. Can an abstract class be a subclass of a concrete class?
If "extended by" means the opposite of what I thought then the first option can't be correct. What does "extended by" mean? Can the words "extended by" be replaced by "a subclass of" or "a base class of"?
The 2 nd option and given correct choice is: A concrete class can be extended by an abstract or a concrete class. This statement codified would look like this: <<abstract class or concrete class>> extends <<concrete class>> {}. Can an abstract class be a subclass of a concrete class?
If "extended by" means the opposite of what I thought then the first option can't be correct. What does "extended by" mean? Can the words "extended by" be replaced by "a subclass of" or "a base class of"?