Imagine a bussiness that goes to your house to do some kind of service, like a plumber. The plumber is a person, you are also a person, and the people that work in the office are also persons.
To model these classes, we would have a person class wich all actors are, technician class (the plumber), and a employee class(people at the office).
I thought of having a person class, and technician, employee, manager, and orther would be child classes.
How would you do it? how would you persist it?
Aucun commentaire:
Enregistrer un commentaire