This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Interface dependant on class

 
Salim Mohamed
Ranch Hand
Posts: 55
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When can I say that an interface depends on a class ?
 
Dinesh Kumar
Ranch Hand
Posts: 54
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An interface can extend another interface but I don't think it can extend a class so it can't depend on a class.
...Dinesh
 
Tina Coleman
Ranch Hand
Posts: 150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From 'UML Distilled':
'A dependency exists between two elements if changes to the definition of one element may cause changes to the other.'
So, if an interface uses a class (rather than an interface) as a parameter or as a return, then the interface would be dependent upon the class.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic