Modeling Union Types with Subclasses
•Say: each piece of furniture is owned either by a person, or by a company
•Solution 1. Acceptable, imperfect (What’s wrong ?)
FurniturePiece
Person
•Company
ownedByPerson
ownedByPerson