protected final TextNode target;
子类无法继承
traget
public class BoldDecorator extends NodeDecorator { public BoldDecorator(TextNode target) { super(target); } public String getText() { return "<b>" + target.getText() + "</b>"; }}
抱歉 抱歉 是我 大意了
Sign in to make a reply
🌙
protected final TextNode target;
子类无法继承
traget
public class BoldDecorator extends NodeDecorator {
public BoldDecorator(TextNode target) { super(target); } public String getText() { return "<b>" + target.getText() + "</b>"; }}