* Vajira:
Lets say there is a inheritance heirarchy like this. C3 inherit from C2
and C2 inherit from C1 ( C3 -> C2 -> C1 ). If C1 class has a public
virtual member function call 'Remove()', can I limit overriding this
member in C3 class ?
I assume you mean whether you can do something in C2 such that C3
can be defined but cannot override the C1 member function.
In that case the answer is, AFAIK, no.
However, if you control the C1 implementation then you can add a dummy
argument of a private type. Then the function can only be overridden
by classes with access to that type. This does not, however, prevent
derived classes from offering a same-named function.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?