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); }
public bool Equals(_2DPoint otherPoint) { if(this.xComponent ==otherPoint.xComponent && this.yComponent==otherPoint.yComponent) {return true;} }else{