What is the output of the following program?
#include
using namespace std;
class OS
{
public:
void display()
{
cout << "Operating System\t";
}
};
class Windows: public OS
{
public:
void display()
{
cout << "Windows\t";
OS::display();
}
};
int main()
{
Windows w;
w.display();
}
1
Windows
2
Operating System
3
Windows Operating System
4
None of above