A) class Circle:
{
private
double centerX;
double centerY;
double radius;
public
setCenter(double, double);
setRadius(double);
}
B) #include
using namespace std;
Class Moon;
Private;
double earthWeight;
double moonWeight;
Public;
moonWeight(double ew);// Constructor
{ earthWeight = ew; moonWeight = earthWeight / 6; }
double getMoonWeight();
{ return moonWeight; }
int main()
double earth;
cout >> "What is your weight? ";
cin
Moon lunar(earth);
cout <>
return 0;
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here