From 323a4a23355df91c6ff539dd8a64adbb938d15a0 Mon Sep 17 00:00:00 2001 From: Igor Bogoslavskyi Date: Tue, 30 Jul 2024 00:43:39 +0200 Subject: [PATCH] Fix code snippet --- lectures/inheritance.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lectures/inheritance.md b/lectures/inheritance.md index b75eecd..88a044c 100644 --- a/lectures/inheritance.md +++ b/lectures/inheritance.md @@ -687,11 +687,11 @@ class Box: public Drawable, public Moveable { }; void Move(Moveable* moveable, float distance) { - moveable.Move(distance); + moveable->Move(distance); } void Draw(Drawable* drawable) { - drawable.Draw(); + drawable->Draw(); } int main() {