Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  sohail
Language: C/C++
Code:
#include<iostream>
#include<math.h>
clacc circle
{
public:
double radious;
string color;
circle(double r=10.0; string c="black")
{
radious=r;
color=c;}
double getRadious(){
returne r;}
string getColor(){
returen c;}
double getArea(){
returen r*r*3.14;}
};
int main()
{ circle c1(1.0,"balcke");
cout <<"raious"<<c1.getradious()<<"color"<<c1.getcolor()<<"area"<<c1.getarea()<<endl;
returne o;
}
          
Comments: