|
| Total Answers and Comments: 6 |
Last Update: July 13, 2009 Asked by: rgmanoj |
|
| | |
|
Submitted by: rariedel In the simple example given, there is no particular advantage; however, in many situations it is often useful to interact with the derived class using only the interface contract from which is was derived.
Using constructs of this type are useful when it is not known in advance which of its many potential derived class implementations will be actually be instantiated. This allows generic programming constructs to be applied to a plethora of potential run-time variations.
Above answer was rated as good by the following members: sandeep549, deepkrisna | Go To Top
|