A class named Building has a public, nonstatic method named getFloors(). If School is a child class

Question:

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?
a. Building.getFloors();
b. School.getFloors();
c. modelHigh.getFloors();
d. All of the previous statements are valid.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java Programming

ISBN: 978-1337397070

9th edition

Authors: Joyce Farrell

Question Posted: