in which cases should we override a method? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

in which cases should we override a method?

28th Nov 2016, 2:38 PM
Margarit
Margarit - avatar
2 Antworten
+ 3
here is an example that you may want to check to see difference or understand the meanings of overriding and overloading https://code.sololearn.com/c0awDMpDLukF/?ref=app
11th Sep 2017, 3:11 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 2
when we want to change the behavior or task of that particular method according to over need in the inherited class at that time we should use over riding
28th Nov 2016, 3:41 PM
Samkitkumar Jain
Samkitkumar Jain - avatar