Q
qazmlp
I have a class like this:
class base
{
public:
virtual ~base() throw();
// Other members
};
Now, if I write a class like this:
class derived
ublic base
{
// Other members
};
What will/should be the format of the compiler-generated destructor for derived?
Will it be this:
- ~derived(); or
- virtual ~derived(); or
- virtual ~derived() throw();
class base
{
public:
virtual ~base() throw();
// Other members
};
Now, if I write a class like this:
class derived
{
// Other members
};
What will/should be the format of the compiler-generated destructor for derived?
Will it be this:
- ~derived(); or
- virtual ~derived(); or
- virtual ~derived() throw();