• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

interface queries

 
Krishnaraj Govindaraju
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between interface implemented by the class and interface implemented by the component ?
 
Devender Thareja
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interface implemented by a class contains all the logic within a class.
Interface implemented by a component may scatter the logic between many classes or subcomponents.
They may be similar from outside but different from inside.
It is possible that component interface may define interaction using XML messages or any other kind of messages. Class interface always defines how objects will interact with each other.
Hope it make sense.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic