Skip to content

Instantly share code, notes, and snippets.

@wviana wviana/Paciente.java
Created Jan 30, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.