static void Main(string[] args) { Mastercard card = new Mastercard(); card.titular = "Hitoshi"; card.parcelas = 23; card.ComprarComDescontoMastercard(37f); }
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.titular = "Ana"; master.parcelas = 2; master.ComprarComDescontoMastercard(45f); }
static void Main(string[] args) { Cartao cartao = new Cartao(); cartao.AprovarCompra(); Mastercard mastercard = new Mastercard(); mastercard.parcelas = 12; mastercard.ComprarComDescontoMastercard(30f); }
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.CompraComDescontoMastercard(50f); }
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); }