On Apr 17, 7:48 am, yashwant pinge
<yashwantpi...@gmail.com> wrote:
> On Apr 17, 6:37 am, Gaijinco <gaiji...@gmail.com> wrote:
>
> > Oh yeah I was very wrong, I tried to code some examples
> > and the compiler always said that display() from "base"
> > is not accessible from "derived" but I don't understand
> > something: Can I overload a method that was inherited?
>
> test.cpp: In function `int main()':
> test.cpp:27: no matching function for call to
> `derived::display()'
> test.cpp:18: candidates are: void derived::display(int)
>
> Why it should be?
I believe that's what FAQ 23.9 is all about.
http://www.parashift.com/c++-faq-lit....html#faq-23.9
--
Pavel Lepin