Back to slide -- Keyboard shortcut: 'u'  previous -- Keyboard shortcut: 'p'  next -- Keyboard shortcut: 'n'          sequence/visitor/Sequence.cs - The class IntSingular.Lecture 8 - slide 36 : 37
Program 4

public class IntSingular: IntSequence{

  private int it;

  public IntSingular(int it){
    this.it = it;
  }

  public int TheInt{
     get{return it;}
  }

  public override int Accept(Visitor v){
    return v.Visit(this);
  } 
}