subject
Engineering, 27.01.2020 22:31 zimbabwayjerry

You will be writing a library simulator involving multiple classes. you will write the libraryitem, patron and library classes, and the three classes that inherit from libraryitem (book, album and movie). all data members of each class should be marked as private (a leading underscore in the name). since they're private, if you need to access them from outside the class, you should do so via get or set methods. any get or set methods should be named per the usual convention ("get_" or "set_" followed by the name of the data member). here are descriptions of the three classes: libraryitem: id_code - a unique identifier for a libraryitem - you can assume uniqueness, you don't have to enforce it title - cannot be assumed to be unique location - a libraryitem can be "on_shelf", "on_hold_shelf", or "checked_out" checked_out_by - refers to the patron who has it checked out (if any) requested_by - refers to the patron who has requested it (if any); a libraryitem can only be requested by one patron at a time date_checked_out - when a libraryitem is checked out, this will be set to the current_date of the library init method - takes an id_code, and title; checked_out_by and requested_by should be initialized to none; a new libraryitem's location should be on the shelf get and set methods as needed

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Adouble-strand no. 60 roller chain is used to transmit power between a 13-tooth driving sprocket rotating at 300 rev/min and a 52-tooth driven sprocket. a) what is the allowable horsepower of this drive? b) estimate the center-to-center distance if the chain length is 82 pitches. c) estimate the torque and bending force on the driving shaft by the chain if the actual horsepower transmitted is 30 percent less than the corrected (allowable) power.
Answers: 3
question
Engineering, 04.07.2019 18:20
Modern high speed trains do not have perpendicular expansion gaps where rails are joined end-to-end any more they are mostly welded together but what might happen if there was a spell of particularly hot weather that causes inspection of the tracks?
Answers: 1
question
Engineering, 04.07.2019 18:20
An open feedwater heater operates at steady state with liquid entering at inlet 1 with t? = 40°c and pl = 1 .2 mpa. water vapor att2-200°c and p2 = 1.2 mpa enters at inlet 2. saturated liquid water exits with a pressure of pa 1.2 mpa. neglect heat transfer with the surroundings and all kinetic and potential energy effects, determine the mass flow rate of steam at inlet 2 if the mass flow rate of liquid water at inlet 1 is given as 2 kg/s.
Answers: 3
question
Engineering, 04.07.2019 19:10
What is the main objective of using reheat rankine cycle?
Answers: 3
You know the right answer?
You will be writing a library simulator involving multiple classes. you will write the libraryitem,...
Questions
question
English, 08.06.2021 02:40
question
Spanish, 08.06.2021 02:40
question
Biology, 08.06.2021 02:40
Questions on the website: 13722366