Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
Overloading is compile time couse the signature of the method can be determined; however Overriding depends on the type of reference wich can be determined at run time not at the compilation time. A method with a parent class parameter will not know the right override method of parent's subclasses to call till run time.
27th Aug 2016, 4:01 AM
Tiger
Tiger - avatar