A. Dynamic Binding:
When a super class type of object is declared, the reference(for instance, x) can point to either a _________ class object or a _________class object.
If a method (say, do()) in super class is overridden in the subclass, in the above case, will x.do() call the super class version or sub class version?
Down casting: if a super class reference points to a subclass object, and a "subclass only" method is called, a downcasting is needed to make the call otherwise compile time error will occur.
B. Interfaces:
The story of last digit.
How many interfaces can a class implement? why?
Can interface type be used to declare objects?
C. Abstract Classes:
What if a class implements only part of the interface?
Can abstract classes become super classes?
What if the abstract methods are not implemented in sub classes either?
D. Comparable Interface:
public interface Comparable{
int compareTo(Object obj);
}
E. Challenge of the Week: All MC questions of Chapter 4.