Skip to content

Commit

Permalink
Fix code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
niosus committed Jul 29, 2024
1 parent 30ca163 commit 323a4a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lectures/inheritance.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 323a4a2

Please sign in to comment.