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 Android Security Essentials Live Lessons this week in the Android 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: 9044
    
  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
 
Consider Paul's rocket mass heater.
 
subject: asking about interfaces
 
Similar Threads
what is wrong with the code??
anonymous class?
asking about interface 1
inner interface.........help me
Can I override an interface method in the class ?