Answer to Question #246175 in Java | JSP | JSF for Aubrey Eso Jozela

Question #246175
Program 7 Rooms You are required to assist with CPUT. W rite the JAVA classes. the development of a system to manage venues and computer labs at UML class diagram of two base classes Venue class Code the attributes and methods as per diagram 1 for the venue class. Assign the values unknown or zero to the attributes in the noargument constructor. 2 Write the method named show() for the Venue class. This method is void and does not have any parameters. This method displays the details of a ve nue object as follows (real data values are used for building name, room number and number of seats): 1 Applications Development Foundations I
1
Expert's answer
2021-10-03T16:17:45-0400
public class Venue {
  private String name;
  private int roomNumber;
  private int numberOfSeats;
  public Venue() {
    this.name = "";
    this.roomNumber = -1;
    this.numberOfSeats = 0;
  }
  public Venue(String name, int roomNumber, int numberOfSeats) {
    this.name = name;
    this.roomNumber = roomNumber;
    this.numberOfSeats = numberOfSeats;
  }
  public void show() {
    System.out.println("Name: " + name);
    System.out.println("Room number: " + roomNumber);
    System.out.println("Number of seats: " + numberOfSeats);
  }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS