You are on page 1of 2

Group Member:

16k-3986 AHMED RAZA


16k-3967 QAISER HASAN
16k-3974 SOHAIL ZIA

INHERITANCE and AGGREGATION


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

You might also like