I have a User class, and the user has multiple devices, but only one can be activated in a session i.e. active device. The device should be able to access the authentication status of the user from the User class, I don't want to store that variable in the device class, as it's a property of the User and not the device, but device will only operate if the user is authenticated.
Any suggestions how I would achieve this in C++?
Aucun commentaire:
Enregistrer un commentaire