Created
January 30, 2017 22:54
-
-
Save wviana/6aff759a97979ef50c4e01386d8478d7 to your computer and use it in GitHub Desktop.
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
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