Question
CIS171 Classroom class in Course Registration Project Create an Eclipse project called CourseRegistration. Create a POJO for Classroom. Important note: DO NOT ADD YOUR LAST
CIS171 Classroom class in Course Registration Project Create an Eclipse project called CourseRegistration. Create a POJO for Classroom. Important note: DO NOT ADD YOUR LAST NAME Create the following private attributes: o building - String o room Number - String o campus - String o type - String o capacity - int Create the getters & setters. Create a toString( ) method. Create a default, no-arg constructor. Create a non-default constructor that takes in all the attributes. Create a ClassroomTesterYourLastName with a main( ) method. Create the following classrooms and print them out using the toString( )
Object Name CompSciLab BioLab LitRoom Building 8 3 2 Room Number 17 28a 12 Campus Ankeny Ankeny Urban Type Computer Lab Science Lab Classroom Capacity 25 22 18
Below is what code I have so far, don't understand how to write my toString method as well as the rest;/
public class Classroom {
// Ashby Creighton Crum
private String Building;
private String RoomNumber;
private String Campus;
private String Type;
private int Capacity;
public Classroom(String B, String RN, String C, String T, int Cap) {
setBuilding(Building);
setRoomNumber(RoomNumber);
setCampus(Campus);
setType(Type);
setCapacity(Capacity);
}
public String getBuilding() {
return Building;
}
public void setBuilding(String Building) {
this.Building = Building;
}
public String getRoomNumber() {
return RoomNumber;
}
public void setRoomNumber(String RoomNumber) {
this.RoomNumber = RoomNumber;
}
public String getCampus() {
return Campus;
}
public void setCampus(String Campus) {
this.Campus = Campus;
}
public String getType() {
return Type;
}
public void setType(String Type) {
this.Type = Type;
}
public int getCapacity() {
return Capacity;
}
public void setCapacity(int Capacity) {
this.Capacity = Capacity;
}
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started