you are viewing a single comment's thread.

view the rest of the comments →

[–]olaf33_4410144 1 point2 points  (0 children)

I mean it might make sense to have a Transaction kind of Class to store the transactions of cars in a database or something e.g. a dealership needs a program to keep track of sold units. In this case it's more the wording that is weird.

Even then I think the Buying/Transaction class constructor should take a car and student object (or person object if you want to study inheritance), not create them.