ประโยคภาษาจีน : 中文句子 |
---|
tí qǔ 提取 tōng yòng 通用 xíng wéi 行为 bìng bǎ 并把 tā men 它们 bāo hán 包含 zài 在 fàn 泛 xíng 型 zhōng 中 ràng 让 lèi 类 de 的 suǒ yǒu 所有 yòng hù 用户 tōng guò 通过 fàn 泛 xíng 型 fǎng wèn 访问 zhè xiē 这些 gōng néng 功能 zhè yàng 这样 jiù 就 kě yǐ 可以 jiǎn shǎo 减少 dài mǎ 代码 chóng fù 重复 |
You can reduce code duplication by abstracting the common behavior and including it in the generic DAO, where all users of the class will have access to the functionality. |