0
我是新来的android。根据下面的代码,如果onListItemClick是一个超类方法,那么为什么不使用override?如果它是子类方法,那么为什么当我更改方法名称时,应用程序崩溃?!什么时候在没有重写的子类中使用超类方法?可能吗?
class BasicViews5Activity extends ListActivity{
//onCreate method here
public void onListItemClick(ListView parent, View v, int position, long id){
//some code here
}
}
可能出现[何时使用Java的@Override注释以及为什么?](http://stackoverflow.com/questions/94361/when-do-you-use-javas-override-annotation-and-why) –