implemented accept and visit

This commit is contained in:
2024-06-08 12:14:16 +00:00
parent e518460e81
commit dcf2a95b4f
5 changed files with 12 additions and 4 deletions

View File

@@ -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);
}