class B
{
void fun()
{
}
};
class A extends B
{
int fun()//这里应该为void fun(),但我理解的覆盖应该相同的函数就行了,所以int fun()也应该对,可是会出错,为什么,我那理解错了?
{
}
};