1.

What is the output of this program?
#include <iostream>
using namespace std;
class InterfaceClass
{
public:
virtual void Display() = 0;
};
class ClassA : public InterfaceClass
{
public:
void Display()
{
int num = 10;
cout << num;
}
};
class ClassB : public InterfaceClass
{
public:
void Display()
{
cout < }
};
int main()
{
ClassA object1;
object1.Display();
ClassB object2;
object2.Display();
return 0;
}

A. 10
B. 14
C. 14 10
D. 10 14
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs