using System; namespace SingletonPattern { static class Program { static void Main() { try { var chocoEggs = ChocolateBoiler.GetInstance(); chocoEggs.Fill(); chocoEggs.Boil(); chocoEggs.Drain(); } catch (Exception) { Console.Write("Oops"); } } } }