Team Popaye
- Sabrie Nedzhip
- Stanislav Chalykov
- Tsvetan Ivanov
- Lyubomir Lyubenov
Technologies
The project was made using these technologies:
- Visual Studio 2012
- .NET Framework 4.5
- C# Console Application
Singleton Design Pattern
In the project the Singleton design pattern is applied to the OnlineShop Class. Since the online shop is only one, it is appropriate to use the pattern in this case. The pattern is achieved by:
- Creating a static member in OnlineShop class
- Making the constructor of the class private
- Creating a static public method that returns a reference to the static member
- Accessing the OnlineShop class via the static public method, which is responsible for creating its class unique instance in case it is not created yet and to return that instance