Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
The Building, School, and HighSchool classes are defined as follows:
Building
School
HighSchool
public class Building { private String address; private int floors; // Implementation omitted } public class School extends Building { private String name; // Implementation omitted } public class HighSchool extends School { private int[] grades; // Implementation omitted }
Which of the following is NOT a true statement?
A HighSchool is a Building
A HighSchool is a School
A School has an address
address
A School has a name
A Building has a name
name