Question: Write a class to represent a 2D point. Derive a class from it to represent a 3D point. Use objects of the derived classes
Write a class to represent a 2D point. Derive a class from it to represent a 3D point. Use objects of the derived classes to find distance between two points as shown below: N Y Point1 (x3x1,21) X Point 2(x2,2,z2)
Step by Step Solution
3.33 Rating (162 Votes )
There are 3 Steps involved in it
Solution Code and output include include include using namespace std class twoDPoint protected ... View full answer
Get step-by-step solutions from verified subject matter experts
