Re: denying inheritance

From: jeffc (
Date: 10/29/03

  • Next message: Jumbo: "Re: 0.1 = 0 ???"
    Date: Wed, 29 Oct 2003 15:15:53 -0500

    "Micah Cowan" <> wrote in message
    > 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

  • Next message: Jumbo: "Re: 0.1 = 0 ???"