Ejemplo n.º 1
0
        static void assignBoat(Customer aCustomer, Boat aBoat)
        {
            string exception;

            try
            {
                aCustomer.AddBoat(aBoat);
            }
            catch (Exception ex)
            {
                exception  = printError(ex);
                exception += "Customer instance has not been created!\n";
                Console.WriteLine(exception);
            }
        }