Hello PHPians,
Well I was wondering if php4 had this ability. I was writting a base
class called HtmlObject (Yes I know HTML is an acronym, but frankly I
didn't care at the time), then I made another class that overrides a
method of the base class the question is, how could I also call the
method from the overridden method?
For example:
class box{
var $items;
var $incrementor;
function add($item){
$this->items[$this->incrementor++]=$item;
}
}
class crate{
var $max=10;
function add($item){
if ($this->incrementor < $max ){
// ))))))))))))))))))) What I want to do here is call
the base class method add so I wouldn't have to rewrite stuff again
((((((((((((((((((((
}
}
}
Has this been addressed in php4 is the question and whats the word to do
this is it Super()?
Thanx in advanced...