Home Segments Top Top Previous Next

326: Practice

Design a class hierarchy for a dozen houses and buildings. At the highest level, place an instance variable named squareFeet and age and locationMultiplier. Write an instance method, appraise, for the classes in your hierarchy. Include classes such as Bungalow, Mansion, Skyscraper, and Warehouse.