<?php abstract class Super { private $var; public function getVar() { return $this->var; } } class Sub extends Super { private $var = 'Hi there!'; } $sub = new Sub(); var_dump($sub->var);
You have javascript disabled. You will not be able to edit any code.