OOP class design in C++ - Stack Overflow
stackoverflow.com › questions › 30644495Jun 04, 2015 · You will utilize the singleton design pattern for your DataBase class to say "there is only one instance of this class at any one time". To do that, you will write your database class like so: class DataBase { public: DataBase(); static Database * instance(); // This is the function that is used to get the global database for use.