ประโยคภาษาจีน : 中文句子 |
---|
wèi le 为了 bì miǎn 避免 zhè ge 这个 wèn tí 问题 yīng dāng 应当 zài 在 gòu zào 构造 hán shù 函数 zhōng 中 chū shǐ huà 初始化 fù zá 复杂 shǔ xìng 属性 rán ér 然而 duì yú 对于 zì fú chuàn 字符串 bù ěr 布尔 zhí 值 děng 等 jiǎn dān 简单 shǔ xìng 属性 zé 则 bù xū yào 不需要 zhè yàng 这样 zuò 做 |
To avoid this problem, complex attributes should be initialized in the constructor; however, this is not necessary for simple attributes such as strings, booleans, and so on. |