How to use Inheritance and constructor overloading
Brother.h
- Committer:
- Jamess
- Date:
- 2015-08-05
- Revision:
- 1:6289618eacd1
- Parent:
- 0:4731d40a338a
File content as of revision 1:6289618eacd1:
#ifndef Brother_H
#define Brother_H
#include "mbed.h"
class Brother{
private:
uint32_t age;
public:
uint32_t getAge(void);
void setAge(uint32_t);
Brother();
Brother(uint32_t myAge);
protected:
// Who has access
// Inherited classes
uint32_t howMuchMoney;
};
#endif
Thiago .