RE: [PHP] Q on Class and EXTEND

From: Date: Wed, 03 Sep 2003 16:30:47 +0000
Subject: RE: [PHP] Q on Class and EXTEND
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161567@lists.php.net to get a copy of this message
> -----Original Message----- > From: Matt Matijevich [mailto:matijevich@alliancetechnologies.net] > Sent: Wednesday, September 03, 2003 11:21 AM > To: php-general@lists.php.net; jsWalter@torres.ws > Subject: Re: [PHP] Q on Class and EXTEND > > > I dont know much about classes, but dont you want > > $a = new THECHILD('walter'); //so you can access $a->abc > > instead of > > $a = new THEPARENT ('walter'); No, I'm wanting to EXTEND the orginal class. meaning, my THECHILD class efines new methods/properties, and I want it used as if it was part of the orginal THEPARENT Class. Me just being picky. Walter

« previous php.general (#161567) next »