Question: You have been given a complete class called Building. Create a class called House that extends building. House should have one additional attribute called exteriorColor.
You have been given a complete class called Building.
Create a class called House that extends building. House should have one additional attribute called exteriorColor. Be sure to give it a constructor.
Create a method in House that overrides the display method of Building. The overridden version of display should call the superclass version, and produce output that looks like the following
This building is sqft
The exterior color of the house is blue
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
