Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2002-03-26 08:23:20


David Abrahams wrote:

> > One that was derived. Is 'inherited' a better word?
>
> If that's what you mean. Derived and inherited are almost opposites.
>
> Given:
>
> struct A {
> virtual void f();
> virtual void g();
> };
>
> struct B : A {
> virtual void g();
> };
>
> If I had to guesss at the meaning of "derived method", I would tend to
> say that B::g() is a derived method of A. Of course calling a derived
> method in that case makes no sense for anything that's actually a B.
>
> I would say that A::f() is an "inherited method" of B.

I used to call them "derived" all the time, but may be wrong and don't have
any books handy where I can find the right name. Okay... will use "inherited".

> Now I'm guessing that you wanted to do something like calling A::g()
> from B::g()?

Yes.

- Volodya

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk