P
Pradeep Patra
Hi all,
If I have the following situation: I have a class A which doesnot
have any virtual functions . If I will declare the destructor as
virtual will that cause any problem? like memory leak etc?
Class B;
class A
{
public:
A();
virtual ~A();
private:
B* b;
}
If I have the following situation: I have a class A which doesnot
have any virtual functions . If I will declare the destructor as
virtual will that cause any problem? like memory leak etc?
Class B;
class A
{
public:
A();
virtual ~A();
private:
B* b;
}