CS2002 - Week 4 - Class Diagrams II Flashcards
(13 cards)
aggregation
Type of association used to express that a class is part of another class
transitive aggregation
An aggregation relationship that can be chained through multiple levels
transitive aggregation example
If B is part of A and C is part of B, C is also part of A
asymmetric aggregation
An aggregation relationship that is not bidirectional
asymmetric aggregation example
It is not possible for A to be part of B and B to be part of A simultaneously
shared aggregation
A relationship between classes where one class aggregates multiple instances of another class which can be shared among multiple classes
shared aggregation syntax
Hollow diamond at the aggregating end
composition
A relationship between two classes where one class is composed of one or more instances of another class
composition syntax
Solid diamond at the aggregating end
generalisation
A hierarchical relationship where a sub/child class inherits attributes and behaviours from a super/parent class
abstract class
A class that cannot be instantiated on its own and is designed to serve as a blueprint for other classes
multiple inheritance
Allows a subclass to inherit characteristics and behaviours from more than one superclass
class
Description of the structure and behaviour of a set of objects