• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Strange inheritance?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Strange inheritance? (From: "Richard L. Aurbach" <email@hidden>)

  • Prev by Date: Re: How do I set a custom path to svn?
  • Next by Date: Re: How do I set a custom path to svn?
  • Previous by thread: Re: Strange inheritance?
  • Next by thread: SOLVED: Strange inheritance?
  • Index(es):
    • Date
    • Thread