Inheritance cannot be used for what in C++

Recommended Answers

All 5 Replies

Is this some kind of homework question? What are you asking in relation to?

There is at least one KIND of special member function that you cannot use inheritance on. Hin't: it doesn't have a '~' in it.

>Inheritance cannot be used for what in C++
Not enough detail, try again.

what's the answer??? question posted in 2004 and its 2008 already....

For unions. Unions cannot have base classes, and unions can not be used as base classes.
Did I get it right?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.