Data Structures and Algorithms with Object-Oriented Design Patterns in C#
next up previous contents index

Abstract Visitors

Program gif defines an abstract class called AbstractVisitor that implements the Visitor interface. This class is provided simply as a convenience. It provides a default implementation for the Visit method which does nothing and a default implementation for the IsDone method which always returns false.

   program4720
Program: AbstractVisitor class.


next up previous contents index

Bruno Copyright © 2001 by Bruno R. Preiss, P.Eng. All rights reserved.