Apartment Class

(Overriding methods continued)

This class builds on what you did in your House class. You will use the parent constructor in Apartment's constructor, but you also want to know which story your Apartment is on, so you will give Apartment a private int instance variable for story. You will make int story a constructor input so you can set your Apartment's story when you make your Apartment object. You set story in the constructor as you would normally.

Your apartment will have 4 rooms, 4 walls, and may or may not have a washer.

The Property Value now depends on whether or not the apartment has a washer. If the apartment has a washer, the property value goes up by 100.

In addition to the more complex constructor and new instance variable, you will make a method to return the story on which your apartment exists.

You should also overload the inseration operator so that your room now prints the property value.