void testTranslate() { Point2D point; point.setX(3); point.setY(5); point.translate(2, 3); point.print(); }
int main (void) { Point2D pa (10, 20); pa.print (); Point3D pb (30, 40, 50); pb.print (); int a[] = {60, 70, 80}; Point3D pc (a); pc.show (); Point3D pd (2014, 8, 7, 0); pd.date (); return 0; }