IT 114: Introduction to Java
Class 35 Ungraded Quiz
-
When we print an object what it the name of the
instance method that println
calls?
-
Say you have an Array of
objects all derived from a base class all of which
have a toString method.
When calling toString
on each object, will the base class or the
derived class method be called?
-
What do you call the feature of inheritance that is used when
dealing with objects all derived from the same base class,
and calling a method which is defined in the base class as
well as the derived classes, that results in Java
using the base class version of the method?