How to use Inheritance and constructor overloading
Brother.cpp
- Committer:
- Jamess
- Date:
- 2015-08-05
- Revision:
- 1:6289618eacd1
- Parent:
- 0:4731d40a338a
File content as of revision 1:6289618eacd1:
#include "Brother.h"
Brother::Brother(){
age = 10;
howMuchMoney = 0;
}
Brother::Brother(uint32_t myAge){
age = myAge;
}
uint32_t Brother::getAge(void){
return age;
}
void Brother::setAge(uint32_t a){
age = a;
}
Thiago .