0
审核中
SquarePegAdapter 没有提供父类的默认构造方法
没有提供父类的默认构造方法 public class SquarePegAdapter extends RoundPeg { private SquarePeg peg; public SquarePegAdapter(SquarePeg peg) { this.peg = peg; } @Override public double getRadius() { double result; // Calculate a minimum circle radius, which can fit this peg. result = (Math.sqrt(Math.pow((peg.getWidth() / 2), 2) * 2)); return result; } }
Customer support service by UserEcho
嗨!
感谢您举报! 您能发送拉取请求吗?
https://github.com/RefactoringGuru/design-patterns-java/tree/master/src/refactoring_guru/adapter/example