Question: 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

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

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 only

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!