Erstellt von Mikael Caselitz
vor etwa 5 Jahre
|
||
Frage | Antworten |
Implementation inheritance vs. delegation | I. i.: extending a base class by a new operation or overriding an existing operation D.: Catching operation and sending it to another object |
Algorithm vs. pattern | A.: - Solving problem finite sequence of well defined instructions P.: - Described problem -> occurs over and over again - Describes the core of the solution - Use solution million times without doing it same way twice |
Modelling a pattern in UML |
Solution must be applicable to more than one specific problem
Image:
Image (binary/octet-stream)
|
Composite Pattern |
Lets a client threat individual objects and groups
Image:
Image (binary/octet-stream)
|
Strategy Pattern |
Situations with different algorithms for different tasks
Specific algorithm is chosen at runtime based on policy used in application
Image:
Image (binary/octet-stream)
|
Proxy Pattern |
Image:
Image (binary/octet-stream)
|
Observer Pattern (MVC Architectural Style) |
System should maintain consistency across views, whenever state of observed object changes
System design should be highly extensible
Image:
Image (binary/octet-stream)
|
Adapter Pattern |
Allows the simplified reuse of existing components
Image:
Image (binary/octet-stream)
|
Façade Pattern |
Image:
Image (binary/octet-stream)
|
Bridge Pattern |
Bridge pattern allows to delay the binding between a interface and its implementation
Image:
Image (binary/octet-stream)
|
State Pattern |
Concrete State provides own implementation for a request
Image:
Image (binary/octet-stream)
|
Möchten Sie mit GoConqr kostenlos Ihre eigenen Karteikarten erstellen? Mehr erfahren.