예제 #1
0
 static void Main(string[] args)
 {
     Chapter1Problems.GetInstance().RunProblems();
     Chapter2Problems.GetInstance().RunProblems();
     Chapter3Problems.GetInstance().RunProblems();
     OtherProblems.GetInstance().RunProblems();
 }
예제 #2
0
        public static Chapter2Problems GetInstance()
        {
            if (instance == null)
            {
                instance = new Chapter2Problems();
            }

            return(instance);
        }