ประโยคภาษาจีน : 中文句子 |
---|
yǒu shí 有时 zài 在 gèng 更 lì yú 利于 duō tài 多态 de 的 qíng kuàng xià 情况下 wèi le 为了 zhǐ chū 指出 fǎn huí 返回 què dìng 确定 de 的 jiē kǒu 接口 shí xiàn 实现 huò zhě 或者 zǐ lèi 子类 yí gè 一个 biāo jì 标记 jiāng 将 bèi 被 chuán rén 传人 gōng chǎng 工厂 fāng fǎ 方法 |
Sometimes, in the case of facilitating polymorphism, a flag will be passed to the factory method to indicate the specific interface implementation or subclass to be returned. |