summaryrefslogtreecommitdiff
path: root/week3/Number.cs
blob: 2eb42bf7a1f723774de629bd8be2e1811907a8a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;

namespace ALGA {
	public class Number : Expression {
		private int number;

		public Number(int number) {
			this.number = number;
		}

		public override String ToString() {
			return $"{number}";
		}

		public override int evaluate() {
			return number;
		}
	}
}