Re: OO Question

From: Date: Mon, 10 Jun 2002 16:31:00 +0000
Subject: Re: OO Question
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-101401@lists.php.net to get a copy of this message
Im no OO coder but I did try this before. I made (well started to anyway) a class that uses two other classes, and yes, $this->that->do_something() did work for me.... Jay wrote:
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.
-- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/

« previous php.general (#101401) next »