Skip to content

Instantly share code, notes, and snippets.

@maurcarvalho
Created January 3, 2014 13:47
Show Gist options
  • Save maurcarvalho/8238119 to your computer and use it in GitHub Desktop.
Save maurcarvalho/8238119 to your computer and use it in GitHub Desktop.
Motocicleta
public class Motocicleta implements Veiculo {
public void andar() {
System.out.println("Motos andam em rodovias");
}
public void ligar() {
System.err.println("Ligar com partida a combustão");
}
public void desligar() {
System.out.println("Desliga motor por chave manual");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment