0% found this document useful (0 votes)
24 views

Group Member: 16k-3986 Ahmed Raza 16k-3967 Qaiser Hasan 16k-3974 Sohail Zia

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.

Uploaded by

Ahmed Raza
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Group Member: 16k-3986 Ahmed Raza 16k-3967 Qaiser Hasan 16k-3974 Sohail Zia

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.

Uploaded by

Ahmed Raza
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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