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.