Created
July 26, 2021 00:30
-
-
Save EricMcWinNer/bf824a49d5c2fdff76348be46464977f 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 | |
class Animal { | |
public static function makeSound(){ | |
echo "Animal"; | |
} | |
public static function vocalize() { | |
echo self::makeSound(); | |
} | |
} | |
Animal::vocalize(); // Animal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment