You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changed the ProductCatalog's usage to follow the Singleton pattern.
By refactoring the class ProductCatalog as an implementation of the Singleton
pattern, we're able to avoid any issues coming from the instantiation
of the list of products, which is now made the first time someone uses
any method from the class.
0 commit comments