我想释放类中定义的对象的内存
class A
{
A() {} //Constructor
//Other Definitions go here
}
Class B
{
B(){} //Constructor
~B()
{
//what should I do to release the memory location of A's object
//Shall I call default destructor of A
}
private:
A objA;
}