Webmaster wrote:
let us say there is Class A.
In the constructor of this class I create an Object B of Class B.
Now what is the difference between these two ?
this->B = new B;
and
B = new B;
The "this" object always points to the current instance of an object. So
whenever you refer to a variab
Well in the first one the property of A named "B" will be an instance of B. In
the second one a local variable in the constructor function named "B" which
is an instance of B, and that variable will not be accessible from any
function other than the constructor (unless you're playing w/ the refl
Hi,
let us say there is Class A.
In the constructor of this class I create an Object B of Class B.
Now what is the difference between these two ?
this->B = new B;
and
B = new B;
Thank you very much!
Wenmaster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://
HI,
let us say there is Class A.
In the constructor of this class I create an Object B of Class B.
Now what is the difference between these two ?
this->B = new B;
and
B = new B;
Thank you very much!
Wenmaster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
Is it better to do:
$obj = &new object();
verses:
$obj = new object();
thanks,
-js
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
5 matches
Mail list logo