OO: inheritance and function naming

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i have the following structure:

class product {

  function create() {
  // db stuff
  }
}

class product_model {
  function create() {
  // db stuff
  }
}

class product_submodel {
  function create() {
  // db class
  }
}

i would like class product to extend class product_model and class
product_model to exten class product_submodel. how would i go about
this since all three classes contain a method create?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux