Java Research 1
Java Research 1
Subclasses have no
access to it.
Remember A class member that has been declared as private will remain
private to its class. It is not accessible by any code outside its class,
including subclasses.
Remember, once you have created a superclass that defines the general
aspects of an object, that superclass can be inherited to form specialized
classes. Each subclass simply adds its own unique attributes. This is the
essence of inheritance.