/*PROGRAM TO SHOW THE CONCEPT OF NESTED CLASS*/
#include<conio.h>
#include<iostream.h>
class A
{
int a;
public:
void get_a()
{
cout<<“Enter a: “;
cin>>a;
cout<<“a= “<<a;
}
class B
{
int b;
public:
void get_b()
{
cout<<“\nEnter b: “;
cin>>b;
cout<<“b= “<<b<<endl;
}
};
};
void main()
{
A a1;
clrscr();
a1.get_a();
A::B b1;
b1.get_b();
getch();
}