Advertisement
Guest User

Untitled

a guest
Dec 14th, 2013
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. //Function Definitions
  2.  
  3. #include "BMI.h"
  4.  
  5. BMI::BMI() {
  6.     newHeight = 0;
  7.     newWeight = 0.0;
  8. }
  9.  
  10. BMI::BMI(string name, int height, double weight) {
  11.         newName = name;
  12.         newHeight = height;
  13.         newWeight = weight;
  14. }
  15.  
  16. BMI::~BMI() {
  17.  
  18. }
  19.  
  20. string BMI::getName() const {
  21.     return newName;
  22. }
  23.  
  24. int BMI::getHeight() const {
  25.     return newHeight;
  26. }
  27.  
  28. double BMI::getWeight() const {
  29.     return newWeight;
  30. }
  31.  
  32. void BMI::setName(string name) {
  33.     newName = name;
  34. }
  35.  
  36. void BMI::setHeight(int height) {
  37.     newHeight = height;
  38. }
  39.  
  40. void BMI::setWeight(double weight) {
  41.     newWeight = weight;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement