sequence/natural-oo-visitor-motivation/Sequence.cs - The class IntSingular. | Lecture 8 - slide 34 : 37 Program 3 |
public class IntSingular: IntSequence{ private int it; public IntSingular(int it){ this.it = it; } public int TheInt{ get{return it;} } public override int Min{ get {return it;} } public override int Max{ get {return it;} } public override int Sum(){ return it; } }