Closed JackieNeoCEG closed 1 month ago
In lay terms, Inheritance is "getting things/behaviors from parent class" Association is maintaining reference of one in another.
WRT your example, nothing prevents you from having an association from circle to shape.
Thank you Prof!
Hi!
Can I check if Inheritance is a "special" form of association? I understand that they are catagorised between "is-a" relation and "has-a" relation but I don't know if they have something in common. E.g Suppose Child Class Circle inherited from Parent Class Shape, can I also draw an association pointing from circle to shape in the object diagram?