diff options
Update README.md
1 files changed, 6 insertions, 6 deletions
| -rw-r--r-- | Sem. 13/README.md | 12 |
diff --git a/Sem. 13/README.md b/Sem. 13/README.md index 57fbe3b..900e66b 100644 --- a/Sem. 13/README.md +++ b/Sem. 13/README.md @@ -12,7 +12,7 @@ struct Fruit virtual ~Fruit(){} }; -struct Apple +struct Apple : public Fruit { void printColor() const override { @@ -20,7 +20,7 @@ struct Apple } }; -struct Orange +struct Orange : public Fruit { void printColor() const override { @@ -29,7 +29,7 @@ struct Orange }; -struct Lemon +struct Lemon : public Fruit { Lemon(size_t sourness) : sourness(sourness){} @@ -102,7 +102,7 @@ struct Fruit virtual Fruit* clone() const = 0; //! }; -struct Apple +struct Apple : public Fruit { void printColor() const override { @@ -115,7 +115,7 @@ struct Apple }; -struct Orange +struct Orange : public Fruit { void printColor() const override { @@ -128,7 +128,7 @@ struct Orange } }; -struct Lemon +struct Lemon : public Fruit { Lemon(size_t sourness) : sourness(sourness){} |
