Please enable JavaScript.
Coggle requires JavaScript to display documents.
Software Design and Architecture; Chapter #7
[Structural Design Patterns]…
Software Design and Architecture; Chapter #7
[Structural Design Patterns]
&
[Behavioral Design Patterns]
Sara Al-Habashi ^_^
Structural design patterns:are patterns that deal with designing the structure of existing classes or objects at run .
Facade Design Pattern:
-
-
-
PROS:
- Shields clients from knowing the internals of complex subsystem.
- provides a stable interface that hides changes to internal
subsystems.
- Promotes weak coupling on clients.
-
Adapter Design Pattern:
-
PROS:
- reusability.
- flexibility.
- use polymorphism to swap between different implementations
-
CONS:
- increase in the overhead.
- many adaptations are required.
-
Behavioral patterns: are responsible for the efficient and safe distribution of behaviors among the program's objects.
Observer Design Pattern:
DEFINITION: standardizes the operations between objects that interoperate using a one-to-many relationship.
-
-
PROS:
- Flexibility.
- maintain and modifying existing system services becomes easier.
Iterator Design Pattern:
DEFINITION: provides a standardized way for accessing and traversing objects in a collection data structure
-
-
PROS:
- provides a consistent way for clients to iterate through the
objects in a collection.
- It abstracts the internals of the collection objects.
- Allows client code to be extended easily.