Question: USING JAVA ALSO CREATE A UML DIAGRAM USING JAVA Create a class for representing a movie theatre called Cinema with the following properties: A private

USING JAVA
ALSO CREATE A UML DIAGRAM
 USING JAVA ALSO CREATE A UML DIAGRAM USING JAVA Create a
class for representing a movie theatre called Cinema with the following properties:

USING 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 cinemalD -A boolean value called openClosed -A no-argument constructor that creates a new Cinema object and performs the following: Sets cinemalD to cinemaCounter, then increments sinemaCounter 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 cinemalD to inemaCounter then increments cinemaCounter Sets openClosed to the boolean value -Sets the length of showings to the int value - A void method called setShowingsl) that allows the user to input string values to populate the menu array A void method called setShowingsEasv() 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: cinemalD 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 Cinema should be open and have a menu size of 2 The third Cinema should be closed and have a menu size of 3 -Change the first Cinema's gpenClosed value to true -Call setshowingsEasyl) for the 1t cinema Call setshowings() for the 2nd cinema Call details!) for all three cinemas

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!