public static UserU operator +(UserU a, UserU b)// перегрузка Ђ+ї { UserU ob = new UserU(); ob.data = a.data + b.data; return(ob); }
static void Main(string[] args) { input(); UserU u1 = new UserU(); u1.data = 10; UserU u2 = new UserU(); u2.data = 10; UserU u3; Console.Read(); }