On 9/23/2010 3:51 PM, Henrik Andersson wrote:
you say Picture IS-A IDrawable.
Despite what the naming conventions are, since the only thing, IMHO, that interfaces are useful for, is determining if the object being passed to a method complies and has methods/properties that can be used, without having to write code to check if the object being passed actually has all the desired methods/properties.

e.g.  According to my understanding:
human, cat, dog are different objects, but they all have an IMoveAround interface So I know If I pass one of the objects to a method that it can use the blueprints defined by the interface without something breaking, and have each walk,crawl, Jump, etc... in their own way.

so shouldn't it be has-a?  or it-has? or they-have? or is-able?

Maybe I am not experienced enough with solid OOP, but that's the way I am understanding things right now.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to