public static void Main()
    {
        Console.WriteLine("Initial value of StaticDemo.val is " + StaticDemo.val);

        StaticDemo.val = 8;
        Console.WriteLine("StaticDemo.val is " + StaticDemo.val);
        Console.WriteLine("StaticDemo.valDiv2(): " + StaticDemo.valDiv2());
    }
Beispiel #2
0
 public static void Main()
 {
     Console.WriteLine(
         "Начальное значение переменной StaticDemo.val равно " + StaticDemo.val);
     StaticDemo.val = 8;
     Console.WriteLine(
         "Значение переменной StaticDemo.val равно " + StaticDemo.val);
     Console.WriteLine("StaticDemo.valDiv2(): " + StaticDemo.valDiv2());
 }