Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python3 Ordered Set Problem Do not modify the starter code except in the allowed places: *YOUR CODE GOES HERE* and For the declaration of
Python3 Ordered Set Problem
Do not modify the starter code except in the allowed places: *YOUR CODE GOES HERE* and " For the declaration of class SchoolLibrary, please uncomment the following line before you start: class Schoo!Library ( In this question you will be asked to create two classes: Library and SchoolLibrary. Library class has the following attributes and methods . member . constructor - a CLASS ATTRIBUTE which keeps track of members in all libraries (class attribute is an attribute shared by all the instances of that class) - constructor to create an instance of Library object o takes location as its argument o creates location as an object attribute o catalog (lists of books) which is initially empty. Another object attribute - a string of where the Library is located - the list of books this Library contains . add_book() - adds a given book (for this question just the name of book) to the Library catalog, as a string checks out a book from the Library catalog(if check out failed, a corresponding error message should be printed) check_out() .get_location) - returns the location of the Library .get_num_books()- returns the number of books in the Library . add_member adds a person to the Library membership list . remove_member) removes a person from the Library membership list SchoolLibrary class is a child (subclass) class of Library and has the following attributes and methods (besides those already defined in Library) . constructor - constructor to create an instance of SchoolLibrary object. (Note: Since SchoolLibrary is inherited from Library, what extra line should you add?) get_school_name() - returns the name of the school which is part of the SchoolLibrary object onlyStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started