About Question enthuware.ocpjp.v7.2.1229 :
Posted: Thu Jan 22, 2015 8:21 pm
Question:
For option c, why can't the root class for a hierarchy of related classes be a concrete
parent class?
I understand that in practice you normally make a parent class of
2 concrete subclasses abstract,
as in
with concrete subclasses
For option c, why can't the root class for a hierarchy of related classes be a concrete
parent class?
I understand that in practice you normally make a parent class of
2 concrete subclasses abstract,
as in
Code: Select all
abstract class Employee{}
Code: Select all
HourlyEmployee extends Employee{}
SalariedEmployee extends Employee{}