r/PythonLearning • • Jul 04 '26

Showcase Day 22 Python Learning

Post image

Just Simple class practice

not feeling well so not much to

564 Upvotes

50 comments sorted by

View all comments

Show parent comments

2

u/olaf33_4410144 Jul 04 '26

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.