static void M2ClassDemo() { M2Class m2 = new M2Class(10); m2.PrintTime(); } public class M2Class { static int M2Value=0; static readonly M2Class m2Obj = new M2Class(); static M2Class() { } M2Class() { Console.WriteLine("Without modifier"); } public M2Class(int i) { M2Value = i; } public void PrintTime() { for (int i = 0; i < 10; i++) { Console.WriteLine($"{DateTime.Now.ToString("yyyyyMMddHHmmssffff")}"); } } }