Skip to content

Instantly share code, notes, and snippets.

@JuanLuisGarciaBorrego
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JuanLuisGarciaBorrego/d9ff6562ec32b3b5c94d to your computer and use it in GitHub Desktop.
Save JuanLuisGarciaBorrego/d9ff6562ec32b3b5c94d to your computer and use it in GitHub Desktop.
welcomeInterface LSP
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