我有一个以下的抽象类.
abstract class AbstractSome implements Interface1, Interface2 {
// all methods defined in Interface1 is implemented
}
现在我想使用实现Interface2的委托来扩展这个类.
class ????Some extends AbstractSome {
public ????Some(final Interface2 delegate) {
this.delegate = delegate;
}
@Override // defined in Interface2
public void doSomething() {
delegate.doSomething();
}
private final Interface2 delegate;
}
这个封闭类是否有任何良好的命名约定?
委派……还是默认……好吗?