Exemplo n.º 1
0
        public static StaticOperPoly operator +(StaticOperPoly a, StaticOperPoly b)
        {
            StaticOperPoly sp = new StaticOperPoly();

            sp.a = a.a + b.a;
            return(sp);
        }
Exemplo n.º 2
0
        public void runCode()
        {
            StaticOperPoly s1 = new StaticOperPoly();
            StaticOperPoly s2 = new StaticOperPoly();

            s1.A = 3;
            s2.A = 4;

            StaticOperPoly s3 = s1 + s2;

            Console.WriteLine(s3.A);
        }