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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started