Example #1
0
 public Book(string name, string author, int price, FormatBook typeBook)
 {
     Name     = name;
     Author   = author;
     Price    = price;
     TypeBook = typeBook;
 }
Example #2
0
        public Book CreateBook(string name, string author, int price, FormatBook typeBook)
        {
            Book book = new Book(name, author, price, typeBook);

            this.AddBook(book);
            return(book);
        }