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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!