23 lines
251 B
PHP
23 lines
251 B
PHP
|
<?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;
|
||
|
}
|
||
|
|
||
|
}
|