Discuss / Java / final

final

Topic source

🌙

#1 Created at ... [Delete] [Delete and Lock User]

protected final TextNode target;

子类无法继承

traget

public class BoldDecorator extends NodeDecorator {
public BoldDecorator(TextNode target) { super(target); } public String getText() { return "<b>" + target.getText() + "</b>"; }}

🌙

#2 Created at ... [Delete] [Delete and Lock User]

抱歉 抱歉 是我 大意了


  • 1

Reply