Posted on 2003-12-09
Consider the example
class D extends C
d = new D
if we call d.xyz(), then Java uses the function xyz()
of superclass as it is not present in classs D.
If xyz() method is not present in class D, then I want
to temporarily coerce d to class C. is it possible, if
possible what are its advantages.
Hoping for a quick reply....