Example #1
0
        static void Main(string[] args)
        {
            Ingresso ingresso = new Ingresso(25);

            Console.WriteLine(ingresso.ToString());

            IngressoVip ingressoVip = new IngressoVip(25, 5);

            Console.WriteLine(ingressoVip.ToString());
        }
Example #2
0
        static void Main(string[] args)
        {
            Ingresso    bilhete = new Ingresso();
            IngressoVip vip     = new IngressoVip();

            vip.Valor          = 25f;
            vip.ValorAdicional = 10.50f;

            vip.MostrarValorVip();
            System.Console.WriteLine($"A diferença dos bilhetes normal e VIP são de R$ {vip.ValorAdicional}");
        }
Example #3
0
        static void Main(string[] args)
        {
            IngressoVip bilhete = new IngressoVip();

            System.Console.WriteLine("Ola! Bem vindo Ao cinema !");
            bilhete.ValorIngresso = 22f;
            bilhete.ValorVip      = 12f;
            bilhete.ImprimirValor();
            bilhete.AdicionarValor();

            System.Console.WriteLine("A diferença de valor é R$ " + bilhete.ValorVip);
        }