Jump to content

neta1o

New Members
  • Posts

    1
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

neta1o's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. When referring to $this->x in ABC the x variable has to be local to that class, in your example it is not. x is local to BCD since it is declared as private. To fix this, change private $x=10; to public or protected (as mentioned above)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.