Created
January 3, 2014 13:46
-
-
Save maurcarvalho/8238106 to your computer and use it in GitHub Desktop.
Classe Carro
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
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