posted 17 years ago
Yeah sure.
Please try to look at the sample code given below.
Tell me whether this code helps you to get the information?
The output it gives is as follows:
If you look at the shout() method implementation code in the AnimalImpl class,
you may get the practical usage of "instanceof" operator.
Hope it helps to clear the doubt.
[ September 11, 2007: Message edited by: Raghavan Muthu ]