예제 #1
0
        public static opov operator+(opov a, opov b)
        {
            opov sum = new opov();

            sum.x = a.x + b.y;
            sum.y = b.y + a.y;
            return(sum);
        }
예제 #2
0
        static void Main(string[] args)
        {
            opov a = new opov(2, 4);
            opov b = new opov(2, 4);

            opov s = new opov(0, 0);

            s = a + b;

            Console.WriteLine(s);
            //Console.WriteLine(opov.(a, b));
            s.print();
        }