The class IntSingular - Revisited. | Lecture 12 - slide 35 : 36 Program 5 |
public class IntSingular: IntSequence{ private int it; public IntSingular(int it){ this.it = it; } public override int? Min{ get {return it;} } public override int? Max{ get {return it;} } public override IEnumerator GetEnumerator(){ yield return it; } } |