Lernkarten

Karten 14 Karten
Lernende 3 Lernende
Sprache Deutsch
Stufe Universität
Erstellt / Aktualisiert 28.12.2019 / 11.01.2020
Lizenzierung Keine Angabe
Weblink
Einbinden
0 Exakte Antworten 14 Text Antworten 0 Multiple Choice Antworten
Fenster schliessen

The Singleton Pattern (Definition)

The Singleton Pattern ensures a class has only one instance, and provides a global point of access to it.

Fenster schliessen

Class Diagram of Singleton Pattern

Lizenzierung: Keine Angabe
Fenster schliessen

Singleton Pattern Implementation Example (Eagerly created instance)

Lizenzierung: Keine Angabe

Eagerly created instance

Fenster schliessen

The Adapter Pattern (Definition)

The Adapter Pattern converts the interface of a class into another interface the clients expect. Adapter lets classes work together that could not otherwise because of incompatible interfaces.

Fenster schliessen

Class Diagram of Adapter Pattern

Lizenzierung: Keine Angabe
Fenster schliessen

Adapter Pattern Implementation Example (Ducks & Turkeys)

Lizenzierung: Keine Angabe
Fenster schliessen

The Observer Pattern (Definition)

Lizenzierung: Keine Angabe

The Observer Pattern defines a one-to-many dependency between objects so that when one object changes state, all of its dependents are notified and updated automatically.

Fenster schliessen

Design Principle (Observer Pattern?)

Strive for loosely coupled designs between objects that interact.