wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes asking about interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "asking about interfaces" Watch "asking about interfaces" New topic
Author

asking about interfaces

kumar abhay
Ranch Hand

Joined: Oct 02, 2001
Posts: 53

Question i:-Interface can not have objects,how instance methods are created?
[ March 18, 2002: Message edited by: Cindy Glass ]
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9047
    
  10


"Interface can not have objects,how instance methods are created?"

Because you have a concrete implemention of the (abstract) method Method() from the interfaces A and B in your class Myclass.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: asking about interfaces