Home Segments Index Top Previous Next

260: Practice

Design a class hierarchy for a dozen houses and buildings. At the highest level, place a member variable named square_feet and age and location_multiplier. Write a member function, appraise, for various classes in your hierarchy. Include classes such as luxury_house, bungalow, skyscraper, and warehouse.