Note: (Restricted functionality due to obvious reasons!)

For Mobile-Ease ⇓

Minimal Code ( Raw-View ) :
#include<iostream.h> #include<conio.h> int G = 1; class Abc1 { public : int id, i,j; Abc1(){ id = G; G++; cout<<"\nDefault Constt.. "<<id<<endl ;} ~Abc1(){ --G; cout<<"\nDefault Dest.. "<<id<<endl ; } Abc1(int x, int j){ id = G; G++; cout<<endl<<"x : "<<x<<"\t i : "<<i<<"\t j : "<<j<<"this->j : "<<this->j<<"\n"; i = x; this->j = j; cout<<"\n Parameterised Constt.. id :"<<id ; cout<<endl<<"x : "<<x<<"\t i : "<<i<<"\t j : "<<j<<"\t" <<" this->j : "<<this->j<<"\n"; } void disp(){cout<<endl<<"id : "<<id<<"\n i : "<<i<<"\n j : "<<j<<"\n";} }gObj; void f1(int i, int j){ Abc1 o1 = Abc1(i,j) ; } void main(){ cout<<"\n running main()...\n"; int i =10, j= 253 , choice =1; while(choice == 1){ f1(i,j); cout<<" re-run function ?? : "; cin>>choice; } Abc1 *o2; cout<<"\n still running main()...\n"<< sizeof(o2); }