Over ride | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Over ride

Can someone help me explain more what over ride is in java

4th Sep 2020, 5:55 AM
Mulindwa Alex Kiyonga
Mulindwa Alex Kiyonga - avatar
1 Answer
+ 3
It's used in runtime polymorphism when the variable type is of super class and the object is of sub class, if you override one of the inherited methods in sub class the sub class method will be called instead of the method in parent class during runtime..
4th Sep 2020, 1:26 PM
D_Stark
D_Stark - avatar