Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class B {
- function __construct($x = 1)
- {
- $this->e = $x;
- }
- }
- class A extends B {
- protected $e;
- function __construct($x = 2)
- {
- $this->у = $x;
- parent::__construct($x);
- }
- }
- $f = new A;
- echo $f->e
Add Comment
Please, Sign In to add comment