1public class Classroom {
2 private String teacherName;
3
4 public Classroom(String teacherName){
5 this.teacherName = teacherName;
6 }
7
8 public String getTeacherName() {
9 return teacherName;
10 }
11}
12
13public static void main(String[] args){
14 Classroom firstGrade = new Classroom("John");
15 /*Once you type the 'firstGrade.' your IDE most likely
16 will show all the functions it can acess*/
17 firstGrade.getTeacherName();
18}