Skip to content

Instantly share code, notes, and snippets.

@carloscds
Last active February 14, 2020 01:06
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 carloscds/1d55134152920e9e1d3c7c3ac4436a88 to your computer and use it in GitHub Desktop.
Save carloscds/1d55134152920e9e1d3c7c3ac4436a88 to your computer and use it in GitHub Desktop.
using System;
public interface IServico
{
public void Executa();
}
public class ServicoCarro : IServico
{
public void Executa()
{
System.Console.WriteLine("Serviço executado no carro!");
}
}
public class ServicoMoto : IServico
{
public void Executa()
{
System.Console.WriteLine("Serviço executado na moto!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment