[haiku-commits] Re: haiku: hrev47567 - src/kits/interface

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: "haiku-commits@xxxxxxxxxxxxx" <haiku-commits@xxxxxxxxxxxxx>
  • Date: Thu, 24 Jul 2014 15:42:05 -0400

On Thu, Jul 24, 2014 at 3:19 PM, Stefano Ceccherini
<stefano.ceccherini@xxxxxxxxx> wrote:
> The order of INHERITED methods doesn't matter.
>
> If class A declares
>
> virtual void foo();
> virtual void foo2();
>
> In class B : public A
>
> there is no difference if you declare
>
> virtual void foo();
> virtual void foo2();
>
> or
>
> virtual void foo2();
> virtual void foo();

Right, that makes sense, I understand now. I don't think I would have
assumed that to be true so thank you for explaining it. There aren't
any non-inherited public virtual methods in BTextView so I guess the
order ultimately didn't matter which is a good thing.

Other related posts: