L
lcan
Good evening!
Most books say private members are not inherited. This cannot be always true
as a private instance variable in the superclass can be accessed in the
subclass using public accessor methods define in the superclass. In effect
the private data is inherited by the subclass but not accessible in the
subclass. Can someone help confirm this?
Best regards,
lc
Most books say private members are not inherited. This cannot be always true
as a private instance variable in the superclass can be accessed in the
subclass using public accessor methods define in the superclass. In effect
the private data is inherited by the subclass but not accessible in the
subclass. Can someone help confirm this?
Best regards,
lc