I have several classes that I want to place into one standard class. How do I create the subclasses?
Here's what I have
I would like to place these in one class called customers.
class contact
{
var $CON_ID;
var $CON_CustomerID;
var $CON_FirstName;
var $CON_LastName;
function contact($CON_CustomerID='', $CON_FirstName='', $CON_LastName='')
{
$this->CON_CustomerID = $CON_CustomerID;
$this->CON_FirstName = $CON_FirstName;
$this->CON_LastName = $CON_LastName;
}
more_functions()
{
}
} // end class contact
class customers_info
{
var $CU_CustomerID;
var $CU_UserName;
var $CU_Password;
function customers($CU_UserName='', $CU_Password='')
{
$this->CU_UserName = $CU_UserName;
$this->CU_Password = $CU_Password;
}
more_functions()
{
}
} // end class customers_info
Can someone using this example show me how to place these in a single class?
Thanks