Can we pass a reference of subclass to a method which has parameter of superclass type.
Yes. In fact it is generally good to use a more abstract class or even an interface which is more abstract as parameters because this makes your method more general.
Kaydell
And when my army is complete, I will rule the world! But, for now, I'm going to be happy with this tiny ad:
a bit of art, as a gift, that will fit in a stocking