php2go/fixtures/0005-inheritance.php

23 lines
251 B
PHP
Raw Normal View History

2020-04-05 06:05:32 +00:00
<?php
class Base {
protected $mX;
protected function __construct($x) {
$this->mX = $x;
}
static function TheStatic() {}
}
class Child extends Base {
protected $mY;
public function __construct($x) {
super($x);
$this->mY = 0;
}
}