Android @Override usage
Posted
by BahaiResearch.com
on Stack Overflow
See other posts from Stack Overflow
or by BahaiResearch.com
Published on 2010-06-01T13:21:46Z
Indexed on
2010/06/01
13:33 UTC
Read the original article
Hit count: 196
(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;
}
}
© Stack Overflow or respective owner