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 {
virtual void Print()=0;
int main()
{
C obj3;
obj3?>Print();
}
It prints: BB
It prints: A
It prints: AB
Compilation error
Submit