What happens when you attempt to compile and run the following code?

What happens when you attempt to compile and run the following code?
#include using namespace std;
class A { public: void Print(){ cout<<"A";} }; class C:public A { public: virtual void Print()=0; }; int main() { C obj3; obj3?>Print(); }
A. It prints: BB
B. It prints: A
C. It prints: AB
D. Compilation error

Download Printable PDF. VALID exam to help you PASS.

Posted in: CPA

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.