Question: Movie.genreToName returns a string version of a genre code based upon the Movie.GENRES array. Thus a code of 5 should return the string zombie. Movie.genresMenu
Movie.genreToName
returns a string version of a genre code based upon the Movie.GENRES array. Thus a code of should return the string zombie.
Movie.genresMenu
returns a string that contains all of the Movie genre names, formatted like:
: science fiction : fantasy : drama : mystery
Movie.toString
returns a string that provides a formatted version of a Movie object. It requires the use of the genreToName method to convert a Movie genre code to a string. A formatted example:
Title: Dellamorte Dellamore Year: Director: Michele Soavi Rating: Genre: zombie
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
