Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Sharpie myPen = new Sharpie("Blue", 5);

            Console.WriteLine(myPen.InkAmount);
            myPen.Use();
            Console.WriteLine(myPen.InkAmount);
        }
        static void Main(string[] args)
        {
            Sharpie bluePen = new Sharpie("Blue", 1);

            while (bluePen.InkAmount > 0)
            {
                bluePen.Use();
                Console.WriteLine(bluePen.InkAmount);
            }
        }