Hi All ..
consider the case :
class test {
public :
int a;
test();
}
class test_derv : public test
{
public:
int a;
};
void main()
{
test * pctest = new test_derv;
delete pctest;
}
We have implicit destructors defined , when their actual definition is absent .
Does that mean , that when we delete a Base class pointer , pointing to a derived class , the actual memory assigned to the derived class is not released.
Is that a memory Leak ???
-varun