Docstoc

ASSIGN

Document Sample
ASSIGN Powered By Docstoc
					#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();
}

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:62
posted:3/21/2010
language:
pages:1