Create derived subclass called brighteyes for the


Create derived subclass called BrightEyes for the italicized class code below that:
1.Has constructor that takes angle in degrees
2.SetRadians() // which takes an angle in radians (degrees =radians * 180/pi)
3.GetRadians() // which returns angle in radians (degrees*pi/180)
4.IsRight() // which returns true if it is a right angle

class Angle { //stores degrees
public:
Angle(double degree){
this->degree=degree;
}
double GetDegrees(){ return degree; }
Angle operator+(const Angle &a){
double deg=degree+a.degree;
while(deg>360){
deg-=360;}
while(deg<0){
deg+=360; }
Angle temp(deg);
return temp;}
private:
double degree;};

 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Create derived subclass called brighteyes for the
Reference No:- TGS0645013

Expected delivery within 24 Hours