S
Shraddha
Can I stop people by deriving my class?
I mean I don't want my class to be as a base class...
Can I do that?
I mean I don't want my class to be as a base class...
Can I do that?
Shraddha said:Can I stop people by deriving my class?
I mean I don't want my class to be as a base class...
Can I do that?
Can I stop people by deriving my class?
I mean I don't want my class to be as a base class...
Can I do that?
Shraddha said:Can I stop people by deriving my class?
I mean I don't want my class to be as a base class...
Can I do that?
Shraddha said:Can I stop people by deriving my class?
I mean I don't want my class to be as a base class...
Can I do that?
Can I stop people by deriving my class?
I mean I don't want my class to be as a base class...
Can I do that?
Yes and no. Unless you're in a very strange situation, just
documenting the fact that the class isn't designed to be used as
a base class should be enough. In fact, unless you're in a very
strange situation, just not documenting how to use it as a base
class should be sufficient.
If it's not, you've got a serious problem, no matter what you
do.
Can I stop people by deriving my class?
I mean I don't want my class to be as a base class...
Can I do that?
"James Kanze" <[email protected]> wrote in message
"Yes and no. Unless you're in a very strange situation, just
documenting the fact that the class isn't designed to be used as
a base class should be enough. "
A non-virtual destructor would be telltale "documentation".
"James Kanze" <[email protected]> wrote in message
"Yes and no. Unless you're in a very strange situation, just
documenting the fact that the class isn't designed to be used as
a base class should be enough. "
A non-virtual destructor would be telltale "documentation".
JohnQ said:"Not always. What about std::exception?"
It's destructor is declared virtual in my implementation.
On Jun 22, 7:57 am, "JohnQ" <[email protected]>
wrote:
"Not always. What about std::exception?"
It's destructor is declared virtual in my implementation.
Yes and no. Unless you're in a very strange situation, just
documenting the fact that the class isn't designed to be used as
a base class should be enough.
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.