Nguyễn Tân
New member
What will be the output of the following C++ code?
A. The program executed
B. Error
C. Runtime error
D. program exceuted
Code:
#include <iostream>
using namespace std;
class Base
{
public:
Base(){}
~Base(){}
protected:
private:
};
class Derived:public Base
{
public:
Derived(){}
Derived(){}
private:
protected:
};
int main()
{
cout << "The program exceuted" << endl;
}
B. Error
C. Runtime error
D. program exceuted