static void Main(string[] args)
        {
            Tape aTape = new Tape();
            VideoCassetteTape vTape = new VideoCassetteTape();
            VideoCassetteTape xTape = new VideoCassetteTape();
            VideoCassetteTape yTape = new VideoCassetteTape();
            AdhesiveTape      dTape = new AdhesiveTape();
            AdhesiveTape      fTape = new AdhesiveTape();

            aTape.TapeWidth  = 1.25;
            aTape.TapeLength = 35;
            vTape.TapeWidth  = 2;
            vTape.TapeLength = 75;
            xTape.TapeWidth  = 2;
            xTape.TapeLength = 144;
            dTape.TapeWidth  = 3.5;
            dTape.TapeLength = 100;
            fTape.TapeWidth  = 4;
            fTape.TapeLength = 100;
            vTape.PlayTime   = -75;
            xTape.PlayTime   = 244;
            yTape.PlayTime   = 45;
            dTape.Stickiness = 14;
            fTape.Stickiness = 7;

            Console.WriteLine(aTape.ToString());
            Console.WriteLine(vTape.ToString());
            Console.WriteLine(xTape.ToString());
            Console.WriteLine(yTape.ToString());
            Console.WriteLine(dTape.ToString());
            Console.WriteLine(fTape.ToString());
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
         AdhesiveTape tape1 = new AdhesiveTape();
         VideoTape tape2 = new VideoTape();
         Tape tape3 = new tape();

            tape1.stick = 6;
            tape1.length = 7;
            tape1.width = 4;
            Console.WriteLine("Tape 1 stick is {0}", tape1.stick);

            tape2.PlayingTime = 95;
            tape2.length = 5;
            tape2.width = 2;

            Console.WriteLine("Tape 2 length is {0} minutes long", tape2.PlayingTime);

            tape3.length = 12;
            tape3.width = 10;

            Console.WriteLine("Tape 3 is {0} feet long", tape3.Length);

       
        }