Re: denying inheritance
From: jeffc (nobody_at_nowhere.com)
Date: 10/29/03
- Previous message: Micah Cowan: "Re: denying inheritance"
- In reply to: Micah Cowan: "Re: denying inheritance"
- Next in thread: Micah Cowan: "Re: denying inheritance"
- Reply: Micah Cowan: "Re: denying inheritance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 29 Oct 2003 15:15:53 -0500
"Micah Cowan" <micah@cowan.name> wrote in message
news:m33cdbu8rx.fsf@localhost.localdomain...
>
> Simply don't declare them "virtual". They'd still be able to
> derive from the class, and still override the member
> functions...
If they're not virtual, then they can't be overridden. Unless by that you
mean redefined.
> Not having a virtual destructor really should keep sane people
> from deriving from your class most of the time, I hope.
The type of person that doesn't care to read the documentation for the class
they're inheriting from certainly isn't going to notice something that
obscure.
- Previous message: Micah Cowan: "Re: denying inheritance"
- In reply to: Micah Cowan: "Re: denying inheritance"
- Next in thread: Micah Cowan: "Re: denying inheritance"
- Reply: Micah Cowan: "Re: denying inheritance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|