Question: Use the code provided below to create a new C++ header file called Circle.h. #ifndef CIRCLE_H #define CIRCLE_H #include > using namespace std; class Circle

Use the code provided below to create a new C++ header file called Circle.h. #ifndef CIRCLE_H

#define CIRCLE_H

#include >

using namespace std;

class Circle {

friend bool operator == (Circle C1, Circle C2);

//return true if area of C1 equals area of C2 (identical), otherwise it returns false

friend bool inside(Circle C1, Circle C2);

// return true if C1 is inside C2, otherwise it returns false

public:

Circle ();

Circle (float R, int X, int Y);

void WriteArea () const;

private:

float radius;

int x, y;

};

#endif

Create a new C++ implementation file called Circle.cpp. This file should contain the implementations of the functions in the Circle class. Also, create an application program to test your Circle class.

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!