- Direct Known Subclasses:
- Film, TVShow
public abstract class Show
extends java.lang.Object
Show is an example AST node generalising the Film and TVShow AST nodes.
Rather than define similar setters and getters for Film and TVShow, these
methods may be defined once in Show, and inherited. The private fields
int date
and String rating
receive the values of
XML attributes, since they are associated with set
-methods.
The private fields Title title
and Director
director
receive dependent AST nodes, since they are associated
with add
-methods. Suitable get
-methods are
provided, to access the values of these fields.
- Version:
- 2.5
- Author:
- Anthony J H Simons