//Ensures that we have only one instance of the StoreEngine class public static StoreEngine GetEngine() { if (_instance == null) { _instance = new StoreEngine(); } return(_instance); }
static void Main(string[] args) { //Valyo-menu //Simo-storage, interface //Ina-dokumentaciq, konstructori za vseki klas-Laptop, smart phone, configuration, product //Angela-exception classes Exception class-Out of storage, Invalid Input, konstruktori-parts, HDD, RAM, CPU StoreEngine engine = GetEngine(); engine.Initialize(); engine.Run(); }