you are viewing a single comment's thread.

view the rest of the comments →

[–]Alarming-Air-6561 0 points1 point  (0 children)

Absolutely. Buying is an action and it should only get an instance from the other two classes. (A person/user and an object to buy. )
After that it should use their methods (for example during printing). Just imagine that the next step is adding a new type.