 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
When
members of two different base classes have the
|
|
|
|
same
name, an ambiguity results when used.
|
|
|
| • |
This
ambiguity cannot be resolved by the compiler, but
|
|
|
|
must
be resolved at the time the access is made either by
|
|
|
|
the
class or by the client.
|
|
|
| • |
The
ambiguity can be resolved by using the base class
|
|
|
|
name
and the scope resolution operator when accessing
|
|
|
|
the
ambiguous member (e.g., savings::get_name). This is
|
|
|
|
the
only way such an ambiguity can be resolved within the
|
|
|
derived
class when accessing the base class member.
|
|