<?php
abstract class Animal {
private $x;
private $y;
private $icon;
public function __construct($x, $y, $icon) {
$this->x = $x;
$this->y = $y;
$this->icon = $icon;
}
abstract public function move();
}
class Mouse extends Animal {
public function move() {
echo "1";
}
public function findThreats() {
}
}
$mouse = new Mouse(1,1, "@");
$mouse->move();
echo $mouse->findThreats;
PD9waHAKCmFic3RyYWN0IGNsYXNzIEFuaW1hbCB7Cglwcml2YXRlICR4OwoJcHJpdmF0ZSAkeTsKCXByaXZhdGUgJGljb247CgoJcHVibGljIGZ1bmN0aW9uIF9fY29uc3RydWN0KCR4LCAkeSwgJGljb24pIHsKCQkkdGhpcy0+eCA9ICR4OwoJCSR0aGlzLT55ID0gJHk7CgkJJHRoaXMtPmljb24gPSAkaWNvbjsKCX0KCglhYnN0cmFjdCBwdWJsaWMgZnVuY3Rpb24gbW92ZSgpOwoKfQoKY2xhc3MgTW91c2UgZXh0ZW5kcyBBbmltYWwgewoJCglwdWJsaWMgZnVuY3Rpb24gbW92ZSgpIHsKCQllY2hvICIxIjsKCX0JCgkKCXB1YmxpYyBmdW5jdGlvbiBmaW5kVGhyZWF0cygpIHsKCQlyZXR1cm4gdW5pcWlkKCk7Cgl9Cgp9CgokbW91c2UgPSBuZXcgTW91c2UoMSwxLCAiQCIpOwoKJG1vdXNlLT5tb3ZlKCk7CgplY2hvICRtb3VzZS0+ZmluZFRocmVhdHM7