✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Введіть рядок символів, який буде виведено на консоль після виклику функції F(). У випадку помилки компілювання - введіть C, при помилці часу виконання - введіть R.
#include <iostream>
using namespace std;
class A {
public:
virtual void f() { cout << "A"; }
};
class B : public A {
public:
void f() override { cout << "B"; A::f(); }
};
void F() {
A* p = new B;
p->f();
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!