From ec1ebcaed60660ea6a4db04edf40c4ae9ec7df31 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Sun, 24 May 2020 19:17:19 +0200 Subject: [PATCH] comments --- cpp/inheritance/cat.h | 1 + cpp/inheritance/dog.h | 1 + 2 files changed, 2 insertions(+) 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