To instead have them in the subclass violates the principle of DRY (don't repeat yourself) : if all the subclasses have the same function, why write it repeatedly in every class?
而他们在子类违反干燥原理(不要重复自己):如果所有的子类具有相同的功能,为什么要写它重复在每一个阶级?
To instead have them in the subclass violates the principle of DRY (don't repeat yourself) : if all the subclasses have the same function, why write it repeatedly in every class?
而他们在子类违反干燥原理(不要重复自己):如果所有的子类具有相同的功能,为什么要写它重复在每一个阶级?
应用推荐