Abstract classes, Interfaces, and Patterns
- slide 36 : 37
A Visitor example: IntSequence
The Visitor Interface.
The abstract class IntSequence.
The class IntInterval.
The class IntSingular.
The class IntCompSeq.
The class MinVisitor.
The class MaxVisitor.
The class SumVisitor.
A sample application of IntSequences and visitors.
Program output.