0
What is the output of the following C++ program?
#include <iostream>
using namespace std;
class A { public: A() { cout << "A"; } ~A() { cout << "a"; } };
class B : public A { public: B() { cout << "B"; } ~B() { cout << "b"; } };
int main() { B obj; return 0; }- AABab
- BBAba
- CABba
- DAaBb
Correct answer: C