0

What is the key difference in overriding and method hiding?

I am in big confusion with these two concepts.

8th Apr 2018, 2:12 PM
Pankaj Kumar
Pankaj Kumar - avatar
3 odpowiedzi
8th Apr 2018, 5:28 PM
Arun Tomar
Arun Tomar - avatar
+ 2
always remember.. final method. cannot be overriding static method.. seen to be overriding while (calling with object) but it actually function hiding. data member can not overriding.. its only hide.. becoz.. all data member of "super class" take space in "sub class "object i provide best of my knowledge . i hope you like it
8th Apr 2018, 5:32 PM
Arun Tomar
Arun Tomar - avatar