Question: return (0): 1. GetFlix Video uses classes and objects to keep track of their movie rentals. Below is the class definition for a Video class.
return (0): 1. GetFlix Video uses classes and objects to keep track of their movie rentals. Below is the class definition for a Video class. class Video public: Video (charchar int -0); char* get name O freturn name; char get tapeid 0treturn id) void check out (int num) number on hand num void return movie int num)number on handnm: void printo: private: char name char id: int number on hand Write the constructor for class Video. Keep in mind that the number on hand should never be a negative number!! a. b. If the method for function print were defined as follows: void Video:printo cout finclude "video h using namespace std: int main Video movie (Fargo", "F455", 15); Video movic2( The Big Stuff "S123"); movie.print(: movie2.printo; movic.check out 3); movie print0 return 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
