Java Reference
In-Depth Information
Here is one example of an overloaded varargs method that is ambiguous:
If you try to call
myMeth( )
with one argument, like this,
the compiler can't determine which version of the method to invoke.
Chapter 7: Inheritance
cess to the members of a superclass?
No, a superclass has no knowledge of its subclasses. Yes, a subclass has access to all
nonprivate members of its superclass.
putes the area of the circle and a constructor that uses
super
to initialize the
TwoDShape
portion.