Create a class Classroom, the class contains the following data fields and data types. Data Type String String Integer Boolean Data Fields name (e.g. RBUS108) location ( location of classroom, e.g. COB) capacity ( the capacity of the classroom, e.g. 18 students) hasComputer ( are there computers in room , values are yes or no ) Create set methods and get methods for each of the data fields. Add a constructor that will require the name of the classroom as a parameter. Classroom(RUS789). Save the file as Classroom.java

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Write in Java and Include comments 

Create a class Classroom, the class contains the following data fields and data types.
Data Type
String
String
Integer
Boolean
Data Fields
name (e.g. RBUS108)
location ( location of classroom, e.g. COB)
capacity ( the capacity of the classroom , e.g. 18 students)
hasComputer ( are there computers in room , values are yes or no )
Create set methods and get methods for each of the data fields.
Add a constructor that will require the name of the classroom as a parameter.
Classroom(RUS789). Save the file as Classroom.java
Transcribed Image Text:Create a class Classroom, the class contains the following data fields and data types. Data Type String String Integer Boolean Data Fields name (e.g. RBUS108) location ( location of classroom, e.g. COB) capacity ( the capacity of the classroom , e.g. 18 students) hasComputer ( are there computers in room , values are yes or no ) Create set methods and get methods for each of the data fields. Add a constructor that will require the name of the classroom as a parameter. Classroom(RUS789). Save the file as Classroom.java
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Files and Directory
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT