為什么會(huì)有兩個(gè)return,這怎么解釋
Dog other = (Dog) obj;
if (age != other.age)
return false;
return true;
為什么會(huì)有兩個(gè)return,這怎么解釋
Dog other = (Dog) obj;
if (age != other.age)
return false;
return true;
為什么會(huì)有兩個(gè)return,這怎么解釋
2018-10-21
舉報(bào)
2018-10-21
前面?zhèn)€return false是if語(yǔ)句的。
Dog other = (Dog) obj;
if (age != other.age)
{
????return false;
}
return true;