Forum Moderators: coopster
class Extenter {
function Extender($params)
{
[...]
}
}
class Extender_add extends Extender {
function myFunction ()
{
[...]
}
}
If I call the class Extender_add and pass parameters, will those parameters be passed to the base constructor if none exists for the sub class? I'm not able to do testing for several days (most of my applications are written in notepad and tested later) so if anyone could tell me whether this is possible, and whether there are any requirements for passing parameters I would be most grateful.
Thanks in advance
My parameters are references to objects (my view, model, interpreter/request and interceptor) and those objects will be common to all subclasses so I wanted to pass them as parameters in the initial object call and have the parent classes constructor handle them:
$extender = new Extender_add($view, $model ...);
Thanks for the advice :)