コード例 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("No. de tarjeta:");
            Tarjeta_credito tc = new Tarjeta_credito();

            Console.WriteLine(tc.num);
            oculto.ocultos(tc);
            Console.WriteLine(tc.NIP);
            oculto.ocultos(tc);
            int saldo    = 500;
            int deposito = 400;
            int resultado;

            Console.WriteLine("saldo total:");
            suma(saldo, deposito, out resultado);
            Console.WriteLine(resultado);
        }
コード例 #2
0
 public static void cambiar(ref Tarjeta_credito tc)
 {
     tc     = new Tarjeta_credito();
     tc.num = "new";
 }
コード例 #3
0
 public static void ocultos(Tarjeta_credito tc)
 {
     tc.num = "xxxxxxxxxxxxxxxx";
     tc.NIP = "xxxx";
 }