65 767
Assignments Done
99,4%
Successfully Done
In October 2018

Answer to Question #58468 in C++ for jonney

Question #58468
class point {
private:
string mytype;
int x;
public:
point()
{
int getx()const{cout<<"point ::getx()const";return 10;}//statement A
int getx() {cout<<"point ::getx()"; return x;}//statement B
virtual string isa()const{return "point";} //statement c
};
class circle:protected point
{
public:
circle():point ()
virtual string isa() const{return "circle";} //statement D
void setr(int y=200){r=y;};
protected:
int getr()const {cout<<"\n circle::getr()"; return r;}
private:
int r;
};
answer the following
a)what is the relationships between "statement C"and "statement D"?
b)what is the relationships between "statement A"and "statement B"?
c)what is the relationships between point and circle classes?
d)what is the relationships between point and mytype classes?
Expert's answer

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions