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