there are 3 classes in two of which are the same methods (sqlite3 and mysql databases), and in the third check.
Is it possible to declare them in 1 variable by type:
Mysql or Sqlite sql;
And in the check for the selected type of base, declare the same variable:
if(mysql) sql = new Mysql(); else sql = new Sqlite()
It possible?