Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

asking about interfaces

 
kumar abhay
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Question i:-Interface can not have objects,how instance methods are created?
[ March 18, 2002: Message edited by: Cindy Glass ]
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


"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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic