The user class will be the main holder of data while the application is in use.
Data to instantiate an user object will come from a database. Such data will be either an entry of a relation in a relational database, a document (e.g. JSON file) stored in a document database (e.g MongoDB), or even a data structure in some other kind of NoSQL database (e.g. Redis).
The user class will be the main holder of data while the application is in use.
Data to instantiate an user object will come from a database. Such data will be either an entry of a relation in a relational database, a document (e.g. JSON file) stored in a document database (e.g MongoDB), or even a data structure in some other kind of NoSQL database (e.g. Redis).