inhereiting from vehicle, which all have a GoToDestination
method that takes them to a city somewhere.
this would be done differently buy ships 'SailTo'
Cars 'DriveTo'
and planes 'FlyTo'
if you then had a collection of planes ships and cars you
could then iterate through the collection calling the
GoToDestination method of each object, and they would then
carry out the appropriate actions.
hth guy
-----Original Message-----
All i know about polymorphism is
"Which methods to be called is not known in compile time but is known onlyon runtime"
but i couldnt really appreciate why this is required @ the first place ?where exactly is this used
Do correct me if my perception is wrong
Budding Nerd ...
.