+ 3
What is meant by OVERRIDING in java??
Friends... explain me in simple words...🤗
4 Antworten
+ 8
overriding is shortly same method but different result
imagine there are two classes called Dog and Cat. we want to have sound method. when we want to use dog.sound() we prefer to see "wouf" and while we use cat.sound () we want to see "meow"
ok this is shortly overriding
See my code here
https://code.sololearn.com/c0awDMpDLukF/?ref=app
+ 3
Thank you so much....@Igor Makarsky👌👍😀
+ 3
can you explain the concept in ur own words...pls.. @Igor Makarsky