Beispiel #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Name");
            string d = Console.ReadLine();

            Console.WriteLine("Id");
            int b = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("Price");
            double c    = Convert.ToDouble(Console.ReadLine());
            Guitar g    = new Guitar(b, d, c);
            List   list = new List();

            list.DisplayList(g);
        }
Beispiel #2
0
 public void DisplayList(Guitar guitar)
 {
     guitar.DisplayId();
     guitar.DisplayName();
     guitar.DisplayPrice();
 }