Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit574829bdfc18fd20e8da815954d7937c07447acb (patch)
Author
 Стоян Златев <47269030+Tony5768@users.noreply.github.com>
2022-05-24 22:05:04 +0300
Committer
 GitHub <noreply@github.com>
2022-05-24 22:05:04 +0300
Filesba025cf6ff1c04e5483dcbf4b1962c7e8b642ef6
Object-oriented_programming_FMI-574829bdfc18fd20e8da815954d7937c07447acb.tar
Object-oriented_programming_FMI-574829bdfc18fd20e8da815954d7937c07447acb.tar.gz
Object-oriented_programming_FMI-574829bdfc18fd20e8da815954d7937c07447acb.zip
Parent995635a1c9045446bfc3ab5f921e5af6bf01878a (diff)
Update README.md
1 files changed, 6 insertions, 6 deletions
-rw-r--r--Sem. 13/README.md12
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){}