I have a class called database, and I have several child classes, with one class for each table in my database.
My problem is, I have to pass a database link to my other classes (non-database related), and I want my other classes to be able to be able to use every single "child" database class without having to create instances of each and every table every time I want to use a class.
Question
That Guy Veteran
I have a class called database, and I have several child classes, with one class for each table in my database.
My problem is, I have to pass a database link to my other classes (non-database related), and I want my other classes to be able to be able to use every single "child" database class without having to create instances of each and every table every time I want to use a class.
Any ideas?
Link to comment
Share on other sites
10 answers to this question
Recommended Posts