Skip to content

Instantly share code, notes, and snippets.

@DoNotLickToaster
Last active August 29, 2015 14:22
Show Gist options
  • Save DoNotLickToaster/39fbc3352140bdc5b528 to your computer and use it in GitHub Desktop.
Save DoNotLickToaster/39fbc3352140bdc5b528 to your computer and use it in GitHub Desktop.
person w/ 4sci
<?php
class Person {
public $name;
public function __construct($name) {
$this->name = $name;
}
public function Speak() {
echo "Hello, world!";
}
}
class 4sci extends Person { // He's a creature of his own
public function Speak() {
echo "jasflasbdfkjads"; // He also speaks garbled shit
}
}
$Man = new Person("Bob");
$Man->Speak(); // normal man speaking
$thing = new 4sci("4sci");
$thing->Speak(); // yay garbled shit
// just kidding 4sci ur cool
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment