Skip to content

The Singleton, Factory Method, Adapter, Composite, and Observer design patterns are all demonstrated together.

Notifications You must be signed in to change notification settings

khaledsawan/design-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

design-patterns

The Singleton, Factory Method, Adapter, Composite, and Observer design patterns are all demonstrated together.

  • Singleton ensures that there is only one instance of the Singleton class.

  • Factory Method is used to create objects based on a common interface.

  • Adapter allows the AdapterLegacySystem to adapt the legacy system's interface to the Product interface.

  • Composite represents a part-whole hierarchy with Component, Leaf, and Composite classes.

  • Observer defines a one-to-many relationship between the Subject and multiple Observer objects.

This example showcases the integration of these design patterns into a single application, illustrating how they can work together in a cohesive manner.

About

The Singleton, Factory Method, Adapter, Composite, and Observer design patterns are all demonstrated together.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages