
10.3 The protected Access Modifier 675
TABLE 10.4 Overriding vs.Overloading Methods
Directly Accessible by
Method Argument Return Subclass Client Using a
Names Lists Types Subclass Object Reference?
Overriding a public Method identical identical identical only the subclass version can
be called
Overloading a public Method identical different in number identical all versions of the overloaded
or type of method can be called
parameters
Table 10.4 illustrates the differences between overriding public methods
and overloading public methods.
10.3 The protected Access Modifier
We have seen that the subclass does not inherit constructors or private
members ...