![]() |
|
|
+ Search |
![]()
|
Oct 5th, 2005 16:05
saimon say, Manolo Gómez, Guest,
----------------------------------------------------------------------
in php5 you can did it like this:
class base {
function __construct($param)
{
...
}
}
class derived extends base{
function __construct($param1,$param2)
{
parent::__construct($param1);
$this->var = $param2;
}
}