Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <?php
  2.  
  3. class Akuma {
  4. private $value;
  5. public function __construct(int $value)
  6. {
  7. $this->value = $value;
  8. }
  9.  
  10. public function echoValue()
  11. {
  12. echo "{$this->value}\n";
  13. }
  14. }
  15.  
  16. $obj = new Akuma(3);
  17. $obj->echoValue();
  18. $obj->__construct(5);
  19. $obj->echoValue();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement