inheritance in c++

Dear all,

How can be possible to inherit only one member function from base class in a derived class?

Thanks,
Behzad
If you want one method to be grouped differently from the others, you might consider putting it in a separate class, only for that method. Remember C++ has multiple inheritance.

The other answer is make everything else private, so it's only visible to that class.
make base class members all private.
inherit base class and into derived class type:
using function ();// problem is if other classes are using this base cl. too :/
Topic archived. No new replies allowed.