Re: OO Question

From: Date: Mon, 10 Jun 2002 16:20:29 +0000
Subject: Re: OO Question
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-101400@lists.php.net to get a copy of this message
Yes, you can do that and yes that's how you do it :) Danny. ----- Original Message ----- From: "Jay" <jpaulson@lbjs.com> To: "Php-General (E-mail)" <php-general@lists.php.net> Sent: Monday, June 10, 2002 5:17 PM Subject: [PHP] OO Question > I was wondering can I create a new Object inside of a different class? > > class One > { > //constructor > function One > { > $this->two = new Two; > $this->test = $this->two->test(); > } > } > > Can you do that? If so is that how you do it? > > Thanks. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#101400) next »