One of the best uses of polymorphism in Java is to declare an array using an interface type, then add objects which can be from any class, as long as thay implement the interface type of the array
Is it possible for anyone to give the example codings for the above quoted thing.
David Ulicny
Ranch Hand
Joined: Aug 04, 2004
Posts: 724
posted
0
I didn't try to compile it, but the idea should be clear.