S
S
Sergey Sergey2021-07-04 12:51:56
Java
Sergey Sergey, 2021-07-04 12:51:56

What does @Override mean in code?

public class NewDay implements NewInterface {

@Override
    public int[] Days(){

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ronald McDonald, 2021-07-04
@Sergei1111

Redefining a function that is (maybe) in a class that you inherit from.
It essentially does nothing, the function will be overridden whether you write it or not, this is more for debugging - if the function is not in the parent class, a warning will be issued.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question