#include<iostream.h>
#include<conio.h>
class test
{
public:
                test();
                ~test();
};
test::test()
{
                cout<<"Constructor of class test called "<<endl;
}
test::~test()
{
                cout<<"Destructor of class test called "<<endl;
}
void main()
{
                clrscr();
                test x;
                cout<<"Terminating main()"<<endl;
}
Advertisements