ประโยคภาษาจีน : 中文句子 |
---|
lìng yì zhǒng 另一种 bì miǎn 避免 zhè yàng 这样 de 的 má fan 麻烦 de 的 fāng shì 方式 shì 是 yǒng yuǎn 永远 wèi 为 fāng fǎ 方法 fǎn huí 返回 zhí 值 shēng míng 声明 lèi xíng 类型 tè bié shì 特别是 wèi 为 gōng yòng 公用 dìng yì 定义 fāng fǎ 方法 de shí hòu 的时候 |
Another way to prevent these problems is to always declare return types for methods, especially when defining methods for a public API. |