// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; public class MathImpl : IMath { public int Add(int a, int b) { return a + b; } public int Sub(int a, int b) { return a - b; } } public class Program { public static void Main(string[] args) { IMath m = new MathImpl(); Console.WriteLine(m.Add(123, 456)); } }