... *Move Method 移动方法 Replace Delegation with Inheritance 用继承代替委托 Extract Hierarchy 提取继承层次 ...
基于236个网页-相关网页
...牢记与心:首先,如果你并没有使用受托类的所有函数,那么就不应该使用Replace Delegation with Inheritance (以继承取代委托),因为子类应该总是遵循超类的接口。
基于227个网页-相关网页
Replace Inheritance with Delegation 用委托代替继承 ; 以委托取代继承
应用推荐