Question: In the following classes #include using namespace std; class Point1{ private : int x; int y; public : Point1( int = 0, int = 0);
In the following classes
#include
using namespace std;
class Point1{
private:
int x;
int y;
public:
Point1(int = 0, int = 0);
void print()const;
};
class Point2{
private:
int x;
int y;
public:
Point2(int = 6, int = 9);
bool equalPoint(Point1&)const;
void print()const;
};
Implement all the functions and add more functions in the class definitions as required?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
