Hello all
I have a query,may be silly but i have to clear it.IT IS REGARDING THE UPCASTING.I want to
"when we can invoke the methods of base class using the object of derived class.then what is the need of assigning the subclass object to base class reference."
I mean what is advantages of using that reference in comparison to using subclass object.