"KP" <K@P.com> skrev i meddelandet
news:dv**********@daniel-new.mch.sbs.de...
No, this is not ajay. I don't know if this question has been already
asked in this group. Do you know any solution of this?
The question is WHY do you want this?
In Java there is a reason to make the class final, beacuse it allows
the code to be optimized when we know that the virtual functions
cannot be overridden by a subclass.
In C++ you can avoid this by not making the functions virtual in the
first place.
If the object is just that inhereting from your class won't work, I
recommend solution #2 from the FAQ:
State in the comments/documentation that inhereting is not allowed -
"Me and my baseball bat will visit any violators!".
Bo Persson