Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            ClienteContacto cc  = new ClienteContacto(1, "JUAN", "JN123", "4578963214", "1254789632", "ESCA", "45", "Rosales", "56608");
            Imprimir        imp = new Imprimir();

            try
            {
                imp.imprimir(cc);
            }
            catch (Exception e) {
                Console.WriteLine(e.Message);
                Console.ReadKey();
            }
            imp.imprimirContacto(cc);
            Console.ReadKey();
        }
 public void imprimirContacto(ClienteContacto cliente)
 {
     Console.WriteLine("Tel: " + cliente.Telefono + " CP:" + cliente.Dir.cP);
 }