Menu
So I’ve got a class called DatabaseHandler which currently has a protected function that connects and returns the connection. Nice
I also have a second class which I want to have a function called saveObject.
Currently I have mySecondClass extends DatabaseHandler
But if I return my saved object I return my database properties too.
How can I just use my database connection object itself? What am I missing?