In C you have to free the memory that has been allocated by the program. Does the same go for objects in C++?
class Common
{
    //some function declarations
}
void example()  
{
    Common obj;
    //do stuff with obj
    delete obj;
}
How important is delete obj; here if i asume the function example() will be called once only?
 
     
    