Question: Please help with this code? Movie - name string + rentMovie0) Write a class that satisfies the following UML diagram and has aavailable : boolean
Movie - name string + rentMovie0) Write a class that satisfies the following UML diagram and has aavailable : boolean constructor that always assigns available to true and allowsyear: int setting of the name and year attribute via the parameter, usereturnMovie() default values for params (your+ isAvailable(): boolean choice). Renting the media makes it unavailable (if it is currently unavailable, display a message that it cannot be rented) and returning it makes it available again. +str() string str (0 method should return a string such as "Movie Title (1900)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
