Esempio n. 1
0
        static void Main(string[] args)
        {
            Cartao     cartao = new Cartao();
            Mastercard master = new Mastercard();

            master.parcelas = 4;
            master.titular  = "Nicolas";
            master.ComprarComDescontoMastercard(10f);
        }
        static void Main(string[] args)
        {
            Cartao card = new Cartao();

            MasterCard master = new MasterCard();

            master.parcelas = 3;
            master.ComprarComDescontoMaster(29f);
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Cartao card = new Cartao();

            Mastercard master = new Mastercard();

            master.titular  = "Ana";
            master.parcelas = 2;
            master.ComprarComDescontoMastercard(45f);
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            Cartao cartao = new Cartao();

            Masteracrd master = new Masteracrd();

            master.titular  = "Ana";
            master.parcelas = 8;
            master.ComparComDesconto(10f);
        }
Esempio n. 5
0
        static void Main(string[] args)
        {
            Cartao Card = new Cartao();

            Card.AprovarCompra();

            MasterCard master = new MasterCard();

            master.parcelas = 30;
            master.ComprarComDescontoMasterCard(200);
        }
        static void Main(string[] args)
        {
            Cartao cartao = new Cartao();

            cartao.AprovarCompra();

            Mastercard mastercard = new Mastercard();

            mastercard.parcelas = 12;
            mastercard.ComprarComDescontoMastercard(30f);
        }
Esempio n. 7
0
        static void Main(string[] args)
        {
            // tentem chamar atributos que estão como private / protected, não funcionará
            Cartao card = new Cartao();

            Mastercard master = new Mastercard();

            master.titular  = "Paulo";
            master.parcelas = 6;
            master.ComprarComDescontoMastercard(45f);
        }
        static void Main(string[] args)
        {
            Cartao card = new Cartao();

            card.AprovarCompra();

            MasterCard master = new MasterCard();

            master.parcelas = 3;
            master.CompraComDescontosMasterCard(50f);
        }
        static void Main(string[] args)
        {
            Cartao x = new Cartao();

            x.aprovarCompra();

            MasterCard y = new MasterCard();

            y.parcelas = 5;
            y.ComparaComDescontoMastercard(35f);
        }
        static void Main(string[] args)
        {
            Cartao card = new Cartao();

            card.titular = "Fernanda";
            card.AprovarCompra();

            Mastercard master = new Mastercard();

            master.titular  = "Fernanda";
            master.parcelas = 7;
            master.ComprarComDescontoMastercard(45f);
        }