This reusability is possible due to the relationship b/w the classes. Object oriented programming generally support 4 types of relationships that are: inheritance , association, composition and aggregation . All these relationship is based on “is a” relationship, “has-a” relationship and “part-of” relationship.14 May 2016
What is the different kind of relationship among classes?
This reusability is possible due to the relationship b/w the classes. Object oriented programming generally support 4 types of relationships that are: inheritance , association, composition and aggregation . All these relationship is based on “is a” relationship, “has-a” relationship and “part-of” relationship.14 May 2016