class Venue{
private String buildingName;
private String roomNumber;
private int numberSeats;
public Venue(){
}
public Venue(String buildingName,String roomNumber,int numberSeats){
this.buildingName=buildingName;
this.roomNumber=roomNumber;
this.numberSeats=numberSeats;
}
public String getBuildingName() {
return buildingName;
}
public String getRoomNumber() {
return roomNumber;
}
public int getNumberSeats() {
return numberSeats;
}
public void setBuildingName(String buildingName) {
this.buildingName = buildingName;
}
public void setRoomNumber(String roomNumber) {
this.roomNumber = roomNumber;
}
public void setNumberSeats(int numberSeats) {
this.numberSeats = numberSeats;
}
@Override
public String toString() {
return "Venue{"
+ "buildingName='" + buildingName + '\''
+ ", roomNumber=" + roomNumber
+ ", numberSeats=" + numberSeats
+ '}';
}
public void show(){
System.out.println("Venue: "
+ "buildingName='" + buildingName + '\''
+ ", roomNumber=" + roomNumber
+ ", numberSeats=" + numberSeats);
}
public boolean problemVenue(){
return false;
}
}
public class Main{
public static void main(String []args){
Venue venue=new Venue("Engineering","2.38",80);
venue.show();
venue.problemVenue();
}
}
Comments
Leave a comment