RE: Strange inheritance?
RE: Strange inheritance?
- Subject: RE: Strange inheritance?
- From: Jeff Laing <email@hidden>
- Date: Mon, 15 Mar 2010 22:14:08 +0000
- Acceptlanguage: en-US
- Thread-topic: Strange inheritance?
> class Base {
> virtual bool Func1 () {return true;}
> };
>
>
> class Sub1 : public Base {
> virtual bool Func1 ();
> };
>
> BUT, in Caller::Action, the line marked with [2] calls Base::Func1(),
> rather than my expected result of Sub::Func1().
You haven't shown the implementation of Sub1::Func1() - that makes it hard to rule out that it just calls its superclass method.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden