Re: Question about virtual

From: Joseph M. Newcomer (newcomer_at_flounder.com)
Date: 10/22/04


Date: Fri, 22 Oct 2004 03:11:49 -0400

Since there is no good reason to remove the virtual keyword, why bother? The problem is
that if a virtual destructor is assumed by the framework and you remove the virtual
keyword, you will get some really nasty behavior.

So leave it alone. It makes no difference as far as anything you should be concerned about
should matter.
                                joe

On Thu, 21 Oct 2004 12:13:26 -0700, "JSmith" <jsmithmitra@yahoo.com> wrote:

>Hi,
>
>when we use Wizard to create a new class. The destructor is generated as
>"virtual". Can you please explain why is that ?
>Will it be a problem if we remove virtual keyword ?
>
>thanks,
>
>

Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm