Question: A class named Building has a public, nonstatic method named getFloors ( ) . If School is a child class of Building, and modelHigh is
A class named Building has a public, nonstatic method named getFloors If School is a child class of Building, and modelHigh is an object of type School, which of the following statements is valid?
Group of answer choices
Building.getFloors;
School.getFloors;
modelHigh.getFloors;
All of the previous statements are valid.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
