Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 460 Bytes

File metadata and controls

10 lines (8 loc) · 460 Bytes

Patterns example

  1. Singletone pattern example =========== This is useful when exactly one object is needed to coordinate actions across the system. The concept is sometimes generalized to systems that operate more efficiently when only one object exists, or that restrict the instantiation to a certain number of objects.

  2. Factory pattern example =========== A utility class that creates an instance of a class from a family of derived classes