Created
July 5, 2015 11:16
-
-
Save JuanLuisGarciaBorrego/1ed9407f4ae73ed9777b to your computer and use it in GitHub Desktop.
InstanceApplication LSP
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
$welcomeUser = new Application("Juan Luis"); | |
//Bienvenid@ Juan Luis | |
echo $welcomeUser->getWelcome(new SpanishHello()); | |
//Wellcome Juan Luis | |
echo $welcomeUser->getWelcome(new EnglishHello()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment