Suppose I have created 10 objects by using new() constructor of classes.
I am also keeping a track of a number of objects created by incrementing the no_obj_ctreate++.
now, I want to deallocate memory of 2 created object manually by using "null".
how to count the total number of the object remaining.
please tell the logic or code to write in a function.