Skip to content

Instantly share code, notes, and snippets.

@wviana
Created January 30, 2017 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wviana/6aff759a97979ef50c4e01386d8478d7 to your computer and use it in GitHub Desktop.
Save wviana/6aff759a97979ef50c4e01386d8478d7 to your computer and use it in GitHub Desktop.
package imc;
public class Paciente {
double peso; // atributos da classe paciente
double altura;
double metros;
public Paciente(double peso, double altura , double metros){// construtor da classe paciente
this.peso=peso;
this.altura=altura;
this.metros=metros;
}
public double calcularImc(){
double imc = peso / (altura * (metros));
return imc;
}
public String diaginostico(){
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment