{ // public to all public $wee = 11; // protected to this class and inherted class protected $dee = 22; // private only for this class private $pee = 33; function showP() { echo $this->wee; echo "<br>"; echo $this->pee; } } $a = new Thing(); echo $a->showP(); echo "<br>"; class Majege extends Thing { function showR() { echo $this->dee; echo "<br>"; } } $b = new Majege(); echo $b->showR(); // static variable class Box { static $b = 333;