✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Що буде виведено в результаті виконання коду?
Введіть відповідь точно так, як її виведе програма, без додаткових пробілів.
#include <iostream>
using namespace std;
struct X {
int v=1; void print(){cout<<"X";}
};
struct Y : public X {
int v=2; void print(){cout<<"Y";}
};
int main() {
Y obj;
obj.print();
return 0;
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!