#using using namespace System; #include __gc public class itest1 { public: int x; itest1() { cout << "executing itest1 constructor!!" << endl; x = 1; } // no destructor needed void add(itest1 *that) // pass by value doesn't work! { this->x += that->x; that->x += 7;} int getx() { return x; } int f(int y) { return y+2; } };