What will variable "y" be in class B?
class A {
int x;
protected:
int y;
public:
int age;
};
class B : public A {
string name;
public:
void Print() {
cout << name << age;
}
};
Which code lines inserted independently instead of the comment will make the following program work correctly? (Choose three.)
Which line of code inserted instead of the comment will make the following code run properly without causing memory leaks?
Currently there are no comments in this discussion, be the first to comment!