Пример #1
0
        static void Main(string[] args)
        {

            _2DPoint p1 = new _2DPoint(3, 4);
            _3Dpoint p2 = new _3Dpoint(4, 5, 6);
            Console.WriteLine("p1 = {0}", p1);
            Console.WriteLine("p2 = {0}", p2);
        }
Пример #2
0
 public bool Equals(_2DPoint otherPoint)
 {
     if(this.xComponent ==otherPoint.xComponent && this.yComponent==otherPoint.yComponent)
     {return true;}
 }else{