Last active
August 29, 2015 14:24
-
-
Save JuanLuisGarciaBorrego/d9ff6562ec32b3b5c94d to your computer and use it in GitHub Desktop.
welcomeInterface 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
interface WelcomeInterface | |
{ | |
public function getWelcome(); | |
} | |
class SpanishWellcome implements WelcomeInterface | |
{ | |
public function getWelcome() | |
{ | |
return "Bienvenid@"; | |
} | |
} | |
class EnglishWellcome implements WelcomeInterface | |
{ | |
public function getWelcome() | |
{ | |
return "Welcome"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment