Пример #1
0
        static void Main(string[] args)
        {
            var p = new Ponto { X = 10, Y = 5 };
            Console.WriteLine(p);

            var q = new Ponto3D { X = 10, Y = 5, Z = 1 };
            Console.WriteLine(q);

            Console.ReadKey();
        }
Пример #2
0
        static void Main(string[] args)
        {
            var p = new Ponto {
                X = 10, Y = 5
            };

            Console.WriteLine(p);

            var q = new Ponto3D {
                X = 10, Y = 5, Z = 1
            };

            Console.WriteLine(q);

            Console.ReadKey();
        }