choose the correct statement that prints the values of x and y for object c1 a. cout
Question:
choose the correct statement that prints the values of x and y for object c1
a.
cout<getX()<<","<getY();
b.
cout<getX()<<","<getY();
c.
cout<
d.
cout<
class Point{
int x;
int y;
public:
Point (int x, int y){
this->x=x;
this->y=y;
}
void setX(int a){x=a;}
void setY(int a){y=a;}
int getX(){return x;}
int getY(){return y;}
};//End of class Student
class Circle{
int d;
Point *center;
public:
Circle(int d, int x, int y){
this->d=d;
center=new Point (x,y);
}
void setPoint(int x, int y){
center->setX(x);
center->setY(y);
}
Point *getPoint(){return center;}
};
int main() {
// insert code here...
Circle c1(30, 4,5);
}
Probability and Statistical Inference
ISBN: 978-0321923271
9th edition
Authors: Robert V. Hogg, Elliot Tanis, Dale Zimmerman