What is the output of the following


- What is the output of the following program?

#include

using namespace std;
class Base {
public:
void f() {
cout<<"Basen";
}
};
class Derived:public Base {
public:
void f() {
cout<<"Derivedn";
}
};
main() {
Derived obj;
obj.Base::f();
}

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: What is the output of the following
Reference No:- TGS01481078

Now Priced at $10 (50% Discount)

Recommended (96%)

Rated (4.8/5)