Android @Override usage
- by BahaiResearch.com
(Newbie to Java, old time C# guy.)
I have noticed a lot of the use of @Override in Android example code. I thought that all Java methods were by default "Virutal"?
What then does @Override do?
Example:
private class HelloWebViewClient extends WebViewClient {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return true;
}
}