Jeff Taylor wrote:
> Hey all, got a slight problem, where for some reasons my variables dont seem
> to be getting stored in the child class:
>
> e.g
>
> class Parent
> {
> $private type;
>
> public function __construct()
> {
> }
>
>public function GetType()
>{
> return $th
# [EMAIL PROTECTED] / 2007-03-20 19:14:17 +1030:
> ""Jeff Taylor"" <[EMAIL PROTECTED]> wrote in
> message news:[EMAIL PROTECTED]
> > Hey all, got a slight problem, where for some reasons my variables
> > dont seem to be getting stored in the child class:
> >
> > e.g
> >
> > class Parent
> > {
> >
I forgot to mention that I have some __construct operations in the parent
class, and I want to add to those (and overwrite sometimes) in the child
class __construct
i.e Parent class __construct
$this->foo = 'Bar';
$this->foo2 = '10';
Child class __construct
OOPS!... typo
Please replace implements with extends:
class Child extends Parent
Sorry about that
""Jeff Taylor"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hey all, got a slight problem, where for some reasons my variables dont
seem
> to be getting stored in the child cla
4 matches
Mail list logo