Interface Behavior
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   mohammad_rizwan
Posted On:   Saturday, September 20, 2003 07:51 AM

Interface I i= new A();


I can call methods on i only defined in interfcae I, but

still i am able to call i.toString()


and all methods defined in Object. How is it possible

when all these methods are not there in Interface I?

Thanks In advance

Rizwan.

Re: Interface Behavior

Posted By:   David_Bates  
Posted On:   Saturday, September 20, 2003 08:29 AM

Because *all* objects, whether explicitly or not "extend java.lang.Object".
About | Sitemap | Contact