Question: Include UML. In Java, create a class for representing a movie theatre called Cinema with the following properties: -A private static int data value named
Include UML. In Java, create a class for representing a movie theatre called Cinema with the following properties: -A private static int data value named cinemaCounter that starts at 1000 and increments for each new restaurant item that is created -A private array of string values called showings -A private int value called cinemaID -A boolean value called openClosed -A no-argument constructor that creates a new Cinema object and performs the following: -Sets cinemaID to cinemaCounter, then increments cinemaCounter -Sets openClosed to false (closed) -Sets showings to be size 3 with no values inside -A two-argument constructor that creates a new Cinema object, accepts an int value, accepts a boolean value, and performs the following: - Sets cinemaID to cinemaCounter, then increments cinemaCounter -Sets openClosed to the boolean value -Sets the length of showings to the int value - A void method called setShowings() that allows the user to input string values to populate the menu array -A void method called setShowingsEasy() that sets the first three indexes of the menu array to the following: "Oscar Bait, Superhero Movie, Romantic Comedy -A void method called details() that prints out the following properties of a Cinema: cinemaID and whether or not the cinema is open. If the cinema is open, details() will print the list of showings. In the main method, perform the following: -Create 3 new Cinema objects -The first Cinema should have the default parameters -The second restaurant should be open and have a menu size of 2 -The third restaurant should be closed and have a menu size of 3 -Change the first Cinemas openClosed value to true -Call setMenuEasy() for the 1st cinema -Call setMenu() for the 2nd cinema -Call details() for all three cinemas.
Include the UML diagram for the Cinema class.
*Program header and pseudocode *Include a screenshot of the output of the details() calls
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
