Does upcasting hide child class's methods and fields? [duplicate]

This question already has an answer here:

Calling a subclass method from superclass

4 answers

I see a lot of List list = ArrayList();

Does it hide the ArrayList's methods since list point to a child class?

(or method hiding does not apply to an interface) Thanks!...

Read More »

By: StackOverFlow - Saturday, 17 November

Related Posts