<?php class A { private $name; public function welcome() { echo 'hi: ' . $this->name; } } class B extends A { private $name = 'b'; } $b = new B; $b->welcome();
You have javascript disabled. You will not be able to edit any code.