+ 1
What does overriding means in java?
5 Respuestas
+ 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
What is diffrence between overriding a piece of code frome some class and inheriting the class by "extends" keyword ?
+ 1
you can override some inherited code structure for example methods or variables
if you have two classes: based and derived in derived you can override
public void example(){System.out.println("something");}
with
public void example(){System.out.println("nothing");}
+ 1
but dont confuse with overloading
this is writing few methods with the same name and return type but with different type of count parameters
+ 1
in extending you take the methods of base class
and now you can overriding this methods
word extends means like this class is subclass of base class
override is redefine of supeclass code for specific task in subclass