例子
abstract class Foobar
{
abstract void myAbstractMethod();
public void myConcreteMethod()
{
//busy code begin
myAbstractMethod();
// busy code complete
}
class childClass extends FooBar
{
@Override
public myAbstractMethod()
{
//busy code to make abstract method, concrete
}
}
这可以接受吗?这是正确的方法吗?这是糟糕的设计吗?