[PHP] Re: working with class inheritance

2007-03-20 Thread Gregory Beaver
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

Re: [PHP] Re: working with class inheritance

2007-03-20 Thread Roman Neuhauser
# [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 > > { > >

[PHP] Re: working with class inheritance

2007-03-20 Thread Jeff Taylor
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

[PHP] Re: working with class inheritance

2007-03-20 Thread Jeff Taylor
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