static void Main(string[] args) { SealedClass instance = new SealedClass(); instance.x = 100; instance.y = 200; Console.WriteLine($"x = {instance.x}, y = {instance.y}"); //Delay Console.ReadKey(); }
static void Main(string[] args) { SealedClass instance = new SealedClass(); instance.x = 100; instance.x = 200; Console.WriteLine("x = {0}, y = {1}", instance.x, instance.y); //Delay Console.ReadKey(); }