-
-
Save pavanBS/0c70395f700aa7b81de4bbe1eb257d5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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