M
Mohammad
Is there way to write a C++ class so that it cannot be subclassed?
Mohammad said:Is there way to write a C++ class so that it cannot be subclassed?
i'm not following you, why is required the virtual inheritance?Ivan said:There is, but it's unfortunately excessively complicated,
making it inconvenient to use.
It can be done by using virtual inheritance:
Domenico Andreoli said:i'm not following you, why is required the virtual inheritance?
Is there way to write a C++ class so that it cannot be subclassed?
Bobo said:(e-mail address removed) (Mohammad) wrote in message
It's easy: declare all your class constructors private!
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.