daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. class B {
  4.     function __construct($x = 1)
  5.     {
  6.         $this->e = $x;
  7.     }
  8. }
  9.  
  10. class A extends B {
  11.     protected $e;
  12.  
  13.     function __construct($x = 2)
  14.     {
  15.         $this->у = $x;
  16.  
  17.         parent::__construct($x);
  18.     }
  19. }
  20.  
  21.  
  22. $f = new A;
  23.  
  24. echo $f->e
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top