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