Click to See Complete Forum and Search --> : Inheritance in c++


cppprogrammer
December 22nd, 2004, 10:24 AM
Can we have a class in c++ which cannot be inherited?

In C# we have a key word sealed and in Java we have final.

Is there anything we can do to develop a class in c++ which cannot be inherited ?

Andreas Masur
December 22nd, 2004, 10:43 AM
Can I stop people deriving from my class? (http://www.research.att.com/~bs/bs_faq2.html#no-derivation)...