OO: inheritance and function naming
| From: | Script Head | Date: | Sun, 05 Jun 2005 23:56:04 +0000 |
| Subject: | OO: inheritance and function naming | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-216451@lists.php.net to get a copy of this message | ||
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?