Curt Zirzow wrote --- napísal::
* Thus wrote Marek Kilimajer:
Chris wrote --- nap?sal::
if anyone can, would you please explain why the below code does what it
does? I would expect $this->test in TestInstance to refer to the
inherited $test from Test. Using php5RC3. Thanks.
class TestInstanc
* Thus wrote Marek Kilimajer:
> Chris wrote --- napísal::
> >if anyone can, would you please explain why the below code does what it
> >does? I would expect $this->test in TestInstance to refer to the
> >inherited $test from Test. Using php5RC3. Thanks.
> >
> > >abstract class Test {
> >pr
Chris wrote --- napísal::
if anyone can, would you please explain why the below code does what it
does? I would expect $this->test in TestInstance to refer to the
inherited $test from Test. Using php5RC3. Thanks.
class TestInstance extends Test {
public function __construct() {
$
Do you have E_STRICT turned on? If not, I believe PHP5 lets you access
private / protected vars wherever you want.
On Wed, 23 Jun 2004 13:40:48 -0400, Chris <[EMAIL PROTECTED]> wrote:
>
> if anyone can, would you please explain why the below code does what it
> does? I would expect $this->test i
if anyone can, would you please explain why the below code does what it
does? I would expect $this->test in TestInstance to refer to the
inherited $test from Test. Using php5RC3. Thanks.
class TestInstance extends Test {
public function __construct() {
$this->test = 0;
}
5 matches
Mail list logo