What will variable "y" be in class B?
class A {
int x;
protected:
int y;
public:
int age;
};
class B : public A {
string name;
void Print() {
cout << name << age;
}
Limited Time Offer
25%
Off
Ria
2 months agoMiesha
21 days agoMiesha
23 days agoMiesha
29 days agoAndra
2 months agoDerick
15 days agoKeva
16 days agoMarshall
17 days agoEsteban
1 months agoFreeman
1 months agoMeghann
2 months agoMerlyn
1 months agoMarget
1 months agoBenedict
1 months agoVilma
1 months agoBilly
1 months agoBarrie
2 months agoChandra
2 months agoLuisa
1 months agoDona
2 months agoBea
2 months agoMinna
3 months agoPearlie
3 months ago