Question OOP-INH-0038
EasyWhat is the output of this code?
#include <iostream>
using namespace std;
class A {
public:
A() { cout << "A"; }
};
class B : public A {
public:
B() { cout << "B"; }
};
int main() {
B b;
}
- A.
A
- B.
B
- C.
Sign up free to see the answer and a step-by-step explanation.