Last active
April 13, 2017 19:41
-
-
Save maltzsama/ce7849d2e3c59d412a13d4200e259cc9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Bichinho_Virtual{ | |
private String nome; | |
private int fome; | |
private int saude; | |
private int idade; | |
public void setNome(String nome){ | |
this.nome = nome; | |
} | |
public String getNome(){ | |
return this.nome; | |
} | |
public void setFome(int fome){ | |
this.fome = fome; | |
} | |
public int getFome(){ | |
return this.fome; | |
} | |
public void setSaude(int saude){ | |
this.saude = saude; | |
} | |
public int getSaude(){ | |
return this.saude; | |
} | |
public void setIdade(int idade){ | |
this.idade = idade; | |
} | |
public int getIdade(){ | |
return this.idade; | |
} | |
public int getHumor(){ | |
return this.fome + this.saude; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment