Re: redefine and override
From: Francis Glassborow (francis_at_robinton.demon.co.uk)
Date: 05/27/04
- Next message: Thomas Matthews: "Re: ofstream to a buffer"
- Previous message: Mike Wahler: "Re: Static pointer to function"
- In reply to: Tony Johansson: "redefine and override"
- Next in thread: Mark : "Re: redefine and override"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 27 May 2004 21:48:10 +0100
In message <MBotc.93566$dP1.299791@newsc.telia.net>, Tony Johansson
<johansson.andersson@telia.com> writes
>Hello experts!!
>
>I would like to know what is the difference between redefine and override.
>
>I'm reading in a book and here it says a virtual function is one that a
>derived class can override.
>In another place in the book it says generally your classes should use
>virtual function. However, if you
>do not want a derived class to redefine a particular member function, the
>function should not be virtual.
>
>So what exactly is to override and redefine.
Which side of the bed the author got out of that day :-)
-- Francis Glassborow ACCU Author of 'You Can Do It!' see http://www.spellen.org/youcandoit For project ideas and contributions: http://www.spellen.org/youcandoit/projects
- Next message: Thomas Matthews: "Re: ofstream to a buffer"
- Previous message: Mike Wahler: "Re: Static pointer to function"
- In reply to: Tony Johansson: "redefine and override"
- Next in thread: Mark : "Re: redefine and override"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|