P
Pranav
class just{
public :
int x;
just(){ x=1234; }
just(int i){ x = i;}
~just(){ cout << " Here We Are\n" ;}
};
int main()
{
just j1;
just *jptr =new just(5432);
delete( jptr);
delete( &j1);
cout << "Test Out \n" ;
return 0;
}
After executing destructor for J1 program calls for an abort in Visual
Studio 6
public :
int x;
just(){ x=1234; }
just(int i){ x = i;}
~just(){ cout << " Here We Are\n" ;}
};
int main()
{
just j1;
just *jptr =new just(5432);
delete( jptr);
delete( &j1);
cout << "Test Out \n" ;
return 0;
}
After executing destructor for J1 program calls for an abort in Visual
Studio 6