/************************************************************************ *
The search of the enclosing classes, including
inherited members, is demonstrated in the following example:
* ************************************************************************/
class A { /* ... */ };
class B { /* ... */ };
class C { /* ... */ };
class Z : A {
class Y : B {
class X : C { int f(); /* ... */ };
};
};
int Z::Y::X f()
{
// ...
j();
// ...
}
/************************************************************************ *
In this example, the search for the name j in the definition of the function f follows this order:
* ************************************************************************/