When you declare a function, it hides all functions of the same name in all base classes, no matter if the function is public, private, or protected or even if it has a different signature.
Reference:
Exceptional C++
by Herb Sutter. Addison-Wesley, 1999, p. 134.
No comments:
Post a Comment