Re: [PHP] Inherit Methods

2005-08-08 Thread M Saleh EG
*parent* keyword does not belong to PHP5 !!! It's there in PHP4 as well! On 8/8/05, Edwin Barrios <[EMAIL PROTECTED]> wrote: > > Hi ! > > you have to defined protected $var. > > This is a example where php5 OO model has a little ambiguities. > Thing a few in your problem !, on de child class s

Re: [PHP] Inherit Methods

2005-08-08 Thread Edwin Barrios
Hi ! you have to defined protected $var. This is a example where php5 OO model has a little ambiguities. Thing a few in your problem !, on de child class scope $var it's private then when yo execute printVar(), you aren't executed on parent scope you are calling a copie on child scope, then yo

Re: [PHP] Inherit Methods

2005-08-08 Thread Jochem Maas
Norbert Wenzel wrote: Jochem Maas wrote: Norbert Wenzel wrote: private $var; get rid of the 'private' here and replace it with 'protected' too stupid. I'm sorry for my question. the only stupid people are those that don't make an effort - you don't seem to fall into that ca

Re: [PHP] Inherit Methods

2005-08-08 Thread Norbert Wenzel
Jochem Maas wrote: Norbert Wenzel wrote: private $var; get rid of the 'private' here and replace it with 'protected' too stupid. I'm sorry for my question. thank you for opening my eyes. norbert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] Inherit Methods

2005-08-08 Thread Jochem Maas
Norbert Wenzel wrote: Is it possible to run inherited methods in the scope of the child class? In my case I have an abstract class called 'Company' and some child classes. There is a non abstract function in 'Company' which prints '$this->phoneList'. That function should be the same to all chi

[PHP] Inherit Methods

2005-08-08 Thread Norbert Wenzel
Is it possible to run inherited methods in the scope of the child class? In my case I have an abstract class called 'Company' and some child classes. There is a non abstract function in 'Company' which prints '$this->phoneList'. That function should be the same to all child classes, without re