Original Post
If i created a object dynamically, should i call the object destructor or delete the object directly? and why?
e.g.
Also, if the aThing class contains a data member that is a objectA. If i use delete p;, will the objectA deleted? Thanks
class aThing
{
public:
aThing(....);
virtual ~aThing();
................
}
void main()
aThing *p;
p = new aThing(....);
//<----delete p;
//<----p->~aThing();
//which one is better?
}