OO Question
| From: | Jay | Date: | Mon, 10 Jun 2002 16:17:27 +0000 |
| Subject: | OO Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101398@lists.php.net to get a copy of this message | ||
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.