public class MovieBooth {
/**
* The name of the movie currently playing.
*/
public String movieName;
/**
* The number of tickets available for the current movie.
*/
public Integer availableTickets;
public Integer NoOfTickets;
/**
* Constructor for the MovieBooth class.
* @param name The name of the movie.
* @param tickets The number of available tickets.
* @param rating The movie rating.
*/
public MovieBooth(String name, Integer tickets, Integer NoOfTickets) {
this.movieName = og;
this.availableTickets = tickets;
this.NoOfTickets = ;
}
/**
* @description A method to display the movie details.
* @return A string containing the movie's name, rating, and available tickets.
*/
public String displayMovieInfo() {
return 'Now Playing: ' + this.movieName + ' (Rated ' + this.NoOfTickets + ') | Available Tickets: ' + this.availableTickets;
}
/**
* @description A static method to create a MovieBooth instance and display its information.
* @return A string with the movie information.
*/
public static String getMovieDetails() {
// Create a new MovieBooth instance
MovieBooth booth = new MovieBooth('The Apex Adventure', 50, 'PG-13');
// Call the instance method to display the information
return booth.displayMovieInfo();
}
}