Re: UnOverRideable member functions?
From: Jerry Coffin (jcoffin_at_taeus.com)
Date: 03/04/05
- Next message: Michael P. O'Connor: "Re: UnOverRideable member functions?"
- Previous message: FC: "how to compare two number sequences"
- In reply to: Michael P. O'Connor: "UnOverRideable member functions?"
- Next in thread: Michael P. O'Connor: "Re: UnOverRideable member functions?"
- Reply: Michael P. O'Connor: "Re: UnOverRideable member functions?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 3 Mar 2005 21:47:15 -0800
Michael P. O'Connor wrote:
> Is it possible to define a member function of an object to be
> Un-OverRideable?
>
> The function also needs to be seen by the outside world so it can not
> be a private member.
Yes, but only on a tecnicality -- only virtual functions can be
overridden, so a non-virtual function is un-overridable.
OTOH, a derived class can still create another function with the same
name, hiding the base class function even if its not virtual (though
some tools will warn about this, since it's rarely desirable).
--
Later,
Jerry.
The universe is a figment of its own imagination.
- Next message: Michael P. O'Connor: "Re: UnOverRideable member functions?"
- Previous message: FC: "how to compare two number sequences"
- In reply to: Michael P. O'Connor: "UnOverRideable member functions?"
- Next in thread: Michael P. O'Connor: "Re: UnOverRideable member functions?"
- Reply: Michael P. O'Connor: "Re: UnOverRideable member functions?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|