Last active
February 14, 2020 01:06
-
-
Save carloscds/1d55134152920e9e1d3c7c3ac4436a88 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
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