在我目前正在做的问题中,给出了两个令人困惑的句子:
1. A property can be either be a house or an apartment. For a house it records ..bula bula
For an apartment, it records .. bula bula
2. A property can be either for sale or rent, or for both. If a property is for sale, it
records .. bula bula. If the property is for rent, it records .. bula bula
这两个是同一个问题。我是否必须通过使用子类或如何来表示它?
非常感谢。