Created
January 9, 2017 04:00
-
-
Save camilopayan/ea39cee734f2ccb241a415598993fce6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
// The real class might look something like this. | |
class Animal | |
{ | |
protected $sound; | |
public function __construct($sound) | |
{ | |
$this->sound = $sound; | |
} | |
public function soundOff() | |
{ | |
echo "$this->sound"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment