static void Main(string[] args) { NumberVisitor nv = new NumberVisitor(); INumber n = new MyInt(); n.visit(nv); Console.ReadLine(); }