Fernando Gómez wrote:
> On Jun 8, 2:05 am, Rolf Magnus <ramag...@t-online.de> wrote:
>> Fernando Gómez wrote:
>> > Hello all. I have this class with a virtual method and a constructor
>> > that calls this virtual method. A derived class overrides this virtual
>> > method, so I expected that when the base's constructor is called, it
>> > would call the derived version of the method. However, it does not, it
>> > calls the base's version.
>>
>> Yes. When the base class constructor is executed, the derived part hasn't
>> yet been created, so the object is not yet an instance of the derived
>> class.
>> Btw, this is a FAQ. You should have a look at the FAQ list of this
>> newsgroup.
>
> Sorry, I don't see a FAQ. In the main page, there's only a list of
> posts and a "search google groups" text box.
Google misled you. This is a usenet group; and it does not hae a "main page"
as It is unrelated to Google. The FAQ is mentioned in the weekly welcome
message. You can find it here:
http://www.parashift.com/c++-faq-lite/
Best
Kai-Uwe Bux