Design Patterns Flashcards
How is the public visibility written in class diagrams ?
+
How is the protected visibility written in class diagrams ?
#
How is the package visibility written in class diagrams ?
~
How is the private visibility written in class diagrams ?
-
What is an Composition link ?
It is a filled black diamond at the end of the link, it is a has-a composite, which means a child cannot exist without its parent
What is an Aggregation link ?
It is a hollow diamand that means “has-a”.. The child can live without the parent
How is heritage shown in a class diagram ?
it is shown witth a hollow triangle at the end
How is an abstract class shown in a class diagram ?
It is written in Italic
How is an interface shown in a class diagram ?
<>
What is a realisation ?
It is the dependency between a class and its interface, it is written with dots instead of a line
What is a Sequence Diagram ?
It is the flow of a program, there are two outgoing signals, the synchrone one needs a response before moving on, it is written with a full black triangle at the end of the line, and the asynchrone message that can continue even without a response, it is written with a slim arrow at the end of the line
What are the 3 pattern families ?
Creation, Structure and Behaviour
What is in the Creation family ?
Singleton, Abstract Factory, Factory method
What is in the Structure family ?
Composite, Decorator, Proxy
What is in the Behaviour family ?
Iterator, Observer, Template Method, Strategy, Visitor