Program diagram architecture school3/1/2024 In the abstract class, no objects can be a direct entity of the abstract class. It represents a whole-part relationship.Ī contact book consists of multiple contacts, and if you delete the contact book, all the contacts will be lost. It portrays the dependency between the parent and its child, which means if one part is deleted, then the other part also gets discarded. The company encompasses a number of employees, and even if one employee resigns, the company still exists.Ĭomposition: The composition is a subset of aggregation. In this kind of relationship, the child class can exist independently of its parent class. It defines a part-whole or part-of relationship. In case if a range is not specified, one is considered as a default multiplicity.įor example, multiple patients are admitted to one hospital.Īggregation: An aggregation is a subset of association, which represents has a relationship. Multiplicity: It defines a specific range of allowable instances of attributes. It depicts how many objects are there in the relationship.įor example, a department is associated with the college.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |