 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
Dynamic
binding allows a heterogeneous collection of
|
|
|
objects
to be processed in a homogeneous way.
|
|
|
| • |
The
true benefit of dynamic binding is achieved when
|
|
|
programs
can process different types of objects using a
|
|
|
common
interface.
|
|
|
| • |
Applications
use only virtual functions defined in the base
|
|
|
class.
The application has no knowledge about any derived
|
|
|
class,
but can generate statements appropriate for each type
|
|
of
account, depending on where base class pointers
|
|
|
reference.
|
|
|
| • |
If
additional types of accounts are later added to the class
|
|
|
hierarchy,
the application can easily generate statements
|
|
|
appropriate
to those accounts.
|
|