0
in which cases should we override a method?
2 Answers
+ 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
+ 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