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/




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to