note 75661 added to language.oop5

From: Date: Mon, 11 Jun 2007 03:28:23 +0000
Subject: note 75661 added to language.oop5
Groups: php.notes 
Request: Send a blank email to php-notes+get-127374@lists.php.net to get a copy of this message
This is a simple problem but I cant figure this out in PHP. In C++ you can have two seperate classes each of which uses the other as a member. This is done by declaring the first class without defining it before defining the second class. //...in C++ class A; class B{ //stuff private: A m_a; }; class A{ //stuff private: B m_b; } Does anyone know if there is a way to achieve this result in PHP? Thanks. ---- Server IP: 64.71.164.2 Probable Submitter: 67.188.250.232 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.php Edit -- https://master.php.net/note/edit/75661 Del: integrated -- https://master.php.net/note/delete/75661/integrated Del: useless -- https://master.php.net/note/delete/75661/useless Del: bad code -- https://master.php.net/note/delete/75661/bad+code Del: spam -- https://master.php.net/note/delete/75661/spam Del: non-english -- https://master.php.net/note/delete/75661/non-english Del: in docs -- https://master.php.net/note/delete/75661/in+docs Del: other reasons-- https://master.php.net/note/delete/75661 Reject -- https://master.php.net/note/reject/75661 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#127374) next »