/// <summary> /// This method will create new object using _manu and then will provide its details /// </summary> public void CheckProducts() { switch (_manu) { case Manufacturers.Samsung: _factory = new SamsungFactory(); break; case Manufacturers.HTC: _factory = new HTCFactory(); break; case Manufacturers.Nokia: _factory = new NokiaFactory(); break; } Console.WriteLine(_manu.ToString() + ":\nSmart Phone: " + _factory.GetSmart().Name() + "\nDumb Phone: " + _factory.GetDumb().Name()); }