Ejemplo n.º 1
0
        static void Main2(String[] args)
        {
            String title     = Console.ReadLine();
            String author    = Console.ReadLine();
            int    price     = Int32.Parse(Console.ReadLine());
            Book   new_novel = new MyBook(title, author, price);

            new_novel.display();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Titul knihy:");
            string title = Console.ReadLine();

            Console.WriteLine("Autor knihy:");
            string author = Console.ReadLine();

            Console.WriteLine("Cena knihy:");
            int  price     = Int32.Parse(Console.ReadLine());
            Book new_novel = new MyBook(title, author, price);

            new_novel.display();
            Console.ReadKey();
        }