diff --git a/cpp/inheritance/cat.h b/cpp/inheritance/cat.h index 79e2098..a2d1cf8 100644 --- a/cpp/inheritance/cat.h +++ b/cpp/inheritance/cat.h @@ -5,6 +5,7 @@ #include "animal.h" using namespace std; +// make the class inherit from animal class cat: public animal { // include the animal constructor diff --git a/cpp/inheritance/dog.h b/cpp/inheritance/dog.h index 4a533b1..a2b38f4 100644 --- a/cpp/inheritance/dog.h +++ b/cpp/inheritance/dog.h @@ -5,6 +5,7 @@ #include "animal.h" using namespace std; +// make the class inherit from animal class dog: public animal { // include the animal constructor