What is the best way to share objects between other classes?
For example; a \"database\" object with functions that are required by the \"article\" and \"user\" obje
Yes, that's pretty much the way you want to do. If a class has external requirements, don't create them inside the class, but require them as arguments in the constructor.