How to use Inheritance and constructor overloading

Dependencies:   mbed

Revision:
0:4731d40a338a
diff -r 000000000000 -r 4731d40a338a main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Aug 05 17:27:08 2015 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "Brother.h"
+#include "Sister.h"
+
+int main() {
+        Sister Thais;
+        Brother Lucio;
+        Brother Thiago(20);
+        
+        Thais.setAge(23);
+                        
+        printf("Thais is %i",Thais.getAge());
+        printf("Lucio is %i",Lucio.getAge());
+        printf("Thiago is %i",Thiago.getAge());
+}