1.

What is the output of this program?
#include <iostream>
using namespace std;
class BaseClass
{
public:
BaseClass(){}
~BaseClass(){}
protected:
private:
};
class DerivedClass:public BaseClass
{
public:
DerivedClass(){}
DerivedClass(){}
private:
protected:
};
int main()
{
cout << "The program exceuted" << endl;
}

A. Compilation Error
B. The program exceuted
C. Runtime Error
D. Garbage value
E. None of these
Answer» C. Runtime Error


Discussion

No Comment Found

Related MCQs