We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
@Override is always optional. It just lets the compiler know what you are doing but it never affects the code. The first 2 paragraphs of this link were useful. It seems that you should still write @Override for the classes extending State.
Covariant Return Types
You are viewing a single comment's thread. Return to all comments →
@Override is always optional. It just lets the compiler know what you are doing but it never affects the code. The first 2 paragraphs of this link were useful. It seems that you should still write @Override for the classes extending State.
HackerRank solutions.