Skip to content

Instantly share code, notes, and snippets.

@maurcarvalho
Created January 3, 2014 13:46
Show Gist options
  • Save maurcarvalho/8238106 to your computer and use it in GitHub Desktop.
Save maurcarvalho/8238106 to your computer and use it in GitHub Desktop.
Classe Carro
public class Carro implements Veiculo {
public void andar() {
System.out.println("Carros 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