Hi all,
I was wandering how some of you may implement combining unique objects that ultimately for one.
I have three objects
Company
Categories
Product
Each of these objects are standalone objects, but at times, the three could be combined to create a complete product.
One way is:
categories extends company
product extends categories
THis will work, but this extended object just seems like over and it is not something I need. I wish something in php would allow me to creare a parent like this
class productComplete extends product, categories, company {}
or
class product_complete
{
$obj1 = new product
$obj2 = new company
$obj3 = new categories
}
Another way?
Any ideas on implementation? THanks in advance.