Name: Anonymous 2006-11-17 15:51
Okay, take a peek at this code:
class A {};
class B:public A {
public:
B() { /*stuff*/ }
~B() { /*stuff*/ }
};
Is this valid or do I have to declare an (empty) virtual destructor in class A? I _could_ make an app and test but that won't tell me if the result is defined or not.
class A {};
class B:public A {
public:
B() { /*stuff*/ }
~B() { /*stuff*/ }
};
Is this valid or do I have to declare an (empty) virtual destructor in class A? I _could_ make an app and test but that won't tell me if the result is defined or not.