This document lists group members and discusses class relationships in an inheritance hierarchy. It notes that the Supplier class inherits from the Person class, and that there is an aggregation relationship between Supplier and Product, since a Supplier has products but a Product does not know about its Supplier. It also describes a one-way association between Purchase and Product, as purchases can be made of products.
This document lists group members and discusses class relationships in an inheritance hierarchy. It notes that the Supplier class inherits from the Person class, and that there is an aggregation relationship between Supplier and Product, since a Supplier has products but a Product does not know about its Supplier. It also describes a one-way association between Purchase and Product, as purchases can be made of products.
This document lists group members and discusses class relationships in an inheritance hierarchy. It notes that the Supplier class inherits from the Person class, and that there is an aggregation relationship between Supplier and Product, since a Supplier has products but a Product does not know about its Supplier. It also describes a one-way association between Purchase and Product, as purchases can be made of products.
Supplier is a person- so Supplier Class inherits from Person Class Supplier has product , for simplicity ,we assumer that each supplier has 5 products. Supplier knows about his product, but product dont know anything about supplier Hence aggregation between supplier and product. ASSOCIATION
Purchases can be made of product, so One way associatinon between purchase
and product.
Composition: Dont have such good example of class relation in our project. If there will be any, we will add it to our project