When can I say that an interface depends on a class ?
Dinesh Kumar
Ranch Hand
Joined: Jul 03, 2002
Posts: 54
posted
0
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
Joined: Dec 12, 2001
Posts: 150
posted
0
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.