public static DigitalWatch getInstance()
        {
            if (instance == null)
            {
                instance = new DigitalWatch();
            }

            return instance;
        }
Beispiel #2
0
        public static DigitalWatch getInstance()
        {
            if (instance == null)
            {
                instance = new DigitalWatch();
            }

            return(instance);
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            DigitalWatch dw = DigitalWatch.getInstance();

            dw.run();
        }