Question: QUESTIONS Class point int x = 1 0 ; int Y = 1 0 ; public: point ( int x ;int y point ( )

QUESTIONS
Class point
int x=10;
int Y=10;
public:
point(int x;int y
point());
void draw point();
1
Assign x to value 5?
a) Point p;p.y=5;
b) Point p;p=5;
c) Point p;p.x=5;
d) Point p; p.(x)=5;
e) Point p; p.point. x=5;
If point*p(1,1) call draw_point()
a) p.draw_point();
b) p->draw_point()
c)p.x=3;
d)p.y=3;
e) p ->draw(3);
Array of points define p**= new point[10].
a) point *p=new point
10;
b) point *p=new point[10];
c) point p=new point
10;
d) point p=point
10;
e) point *p= new point
10;
How to initialize values of p
a)p3[0].x=1;,p3[0]*y=1;
p3[1].x=2;,p3[1].y=1;
b)p3[0]x=1;,p3[0]->y=1;
p3[1]-x=2;,p3[1]y=1;
c)p3[0]x=1;,P3[0]>y=1;
p3[1]*x=2;,p3[1]*y=1;
d)p3[0](x)=1; ;
p3[1](x)=2; p3[1](y)=1;
e),p3[0]x=1; p3[0]y=1; p3[1]x=2; p3[1]-y=1;
class outer public: class inner { public: void f(); }; inner g(){ return inner(); }}; void outer::inner::f(){
}}
How to access from outer function to inner class f function
a) inner::f
b) outer:::inner::f
c)f
d) outer::f
e) inner::outer::f
QUESTIONS Class point int x = 1 0 ; int Y = 1 0 ;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!