ASSIGN

Home >> Sem 2 >> C++ programs >> ASSIGN

#include<iostream.h>
#include<conio.h>
class test
{
  int a;
  public:
  test()
  { a=10;}
  void show()
  {
   cout<<a<<endl;
 }
};
void main()
{
test t1;
clrscr();


test t2 = t1;
test t3;
t3=t1;
t1.show();
t2.show();
t3.show();
getch();
}