ประโยคภาษาจีน : 中文句子 |
---|
zhè shì 这是 zhōng 中 yí gè 一个 hǎo 好 de 的 xí guàn 习惯 yīn wèi 因为 biān yì qì 编译器 huì 会 nèi lián 内联 zhè xiē 这些 fǎng wèn 访问 bìng qiě 并且 rú guǒ 如果 xū yào 需要 yuē shù 约束 huò zhě 或者 tiáo shì 调试 zhè xiē 这些 yù 域 de 的 fǎng wèn 访问 nǐ 你 kě yǐ 可以 zài rèn 在任 hé 何 shí jiān 时间 tiān jiā 添加 dài mǎ 代码 |
This is an excellent habit for C++, because the compiler can usually inline the access, and if you need to restrict or debug field access you can add the code at any time. |