Skip to content

Instantly share code, notes, and snippets.

@pavanBS
Last active June 28, 2017 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavanBS/0c70395f700aa7b81de4bbe1eb257d5e to your computer and use it in GitHub Desktop.
Save pavanBS/0c70395f700aa7b81de4bbe1eb257d5e to your computer and use it in GitHub Desktop.
<?php
interface A {
public function setProperty($x);
public function description();
}
class Mangoes implements A {
public function setProperty($x) {
$this->x = $x;
}
public function description() {
echo 'Describing' . $this->x . tree;
}
}
$Mango = new Mangoes();
$Mango->setProperty(mango);
$Mango->description();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment