Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Akuma {
- private $value;
- public function __construct(int $value)
- {
- $this->value = $value;
- }
- public function echoValue()
- {
- echo "{$this->value}\n";
- }
- }
- $obj = new Akuma(3);
- $obj->echoValue();
- $obj->__construct(5);
- $obj->echoValue();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement