Question: - A constructor that receives as input the name and location. Getters for each attribute. add_book(title: String, author: String): Bool -- This operation adds the
- A constructor that receives as input the name and location. Getters for each attribute. add_book(title: String, author: String): Bool -- This operation adds the book's title to the list of books and the author to the list of authors. The method must confirm before adding that both attributes are of type String, otherwise the operation won't be performed. The method must return True if the book and author were added, False otherwise _str_() -- Should return the following information "Name:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
