This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Interface Question  RSS feed

 
Michael Eller
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have studying the use of interfaces. I believe I am getting a good grasp of the subject.
I do have one question.
Is it safe to say that an interface provides the methods that an object that implements that interface uses as a means of communication with other objects? ... hence the name interface.

Thanks for any and all assistance.

v/r
Mike
 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct. There may or may not be logical/direct relationship between those objects. That's what a loose coupling means.
But be clear with the use of Interface and Abstract Class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!