Question
You are about to start a small business that rents out movies. The only movies that you are interested in falling into any of the
You are about to start a small business that rents out movies. The only movies that you are interested in falling into any of the following three categories: Fiction, Action, and Adventure. Create a class called MyMovies. Declare three attributes: movie_title, movie_category, and movie_length. The movie_title and movie_length attributes should be declared as public whilst the movie_category declared as private. how to create a method called set category that takes in a string parameter called category and checks whether the movie belongs to any of the three categories that are sold at the movie shop, that is, (Fiction, Action, and Adventure). If so, it should set the movie_category attribute value to this string value. If the category is not matching with any of the three, it should simply set the movie_category attribute value to uncategorized. how to create a method called setMovielength() that takes an integer parameter called length and sets the value of the movie_length attribute to the value passed to this parameter. how to create a method called setTitle () that takes a string parameter called title and sets the value of the movie_title attribute to the value passed to this parameter. Using C++
Step 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