Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL);
- ini_set('display_errors', '1');
- include_once('IRobot.php');
- class DarkBot implements IRobot
- {
- $protocol = IRobot::MODEL1;
- $astro = IRobot::MODEL2;
- $terminate = IRobot::MODEL3;
- public function helpHuman()
- {
- return "$protocol: 'Oh dear, I am Afraid I cannot help Humans!' <br>";
- }
- public function kill()
- {
- return "$terminate: 'I would rather kill the humans!' <br> ";
- }
- public function translate()
- {
- return "$astro: 'Beep-boop' *with fire spitting from him*";
- }
- }
- $test = new DarkBot();
- echo test->helpHuman();
- echo test->kill();
- echo test->translate();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement