#include <iostream.h>
#include<conio.h>
#include <stdlib.h>
class OuterClass
{
public:
void outerFunction();
class InnerClass
{
public:
void innerFunction();
};
};
void OuterClass::outerFunction()
{
cout << "This is a function in the base class\n";
InnerClass myclass;
myclass. innerFunction();
}
void OuterClass:: InnerClass:: innerFunction()
{
cout<< "This is a function in the InnerClass class \n";
}
void main()
{
clrscr();
OuterClass myclass;
myclass.outerFunction();
getch();
}