- 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 Antwort
+ 2
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