What is the output of the following program? #include using namespace std; class Base { public: void f() { cout


What is the output of the following program?



#include



using namespace std;


class Base {


public:


   void f() {


      cout<>


   }


};


class Derived:public Base {


public:


   void f() {


      cout<>


   }


};


main() {


   Derived obj;


   obj.Base::f();


}


A - Base



B - Derived



C - Compile error



D - None of the above.



Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here