Пример #1
0
        public void Func1()
        {
            Customer c1 = new Customer("Babo");
            Employee e1 = new Employee();
            if (c1.CompareTo(e1) > 0)
            {

            }

            Customer2 c2 = new Customer2("Babo");
            Employee e2 = new Employee();
            //if (c2.CompareTo(e2) > 0)
            //{

            //}
        }
Пример #2
0
 public int CompareTo(Customer2 right)
 {
     return _name.CompareTo(right._name);
 }