implemented accept and visit
This commit is contained in:
@@ -2,4 +2,8 @@ package uebung08.doc;
|
||||
|
||||
public interface Visitor<T> {
|
||||
T visit(TextComponent textComponent);
|
||||
T visit(Book book);
|
||||
T visit(Paragraph paragraph);
|
||||
T visit(Image image);
|
||||
T visit(Section section);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user