Skip to content

Commit 9bb2455

Browse files
committed
fix wrong class names on question 66
1 parent e6532b5 commit 9bb2455

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2080,7 +2080,7 @@ In a derived class, you cannot access the `this` keyword before calling `super`.
20802080

20812081
With the `super` keyword, we call that parent class's constructor with the given arguments. The parent's constructor receives the `name` argument, so we need to pass `name` to `super`.
20822082

2083-
The `Dog` class receives two arguments, `name` since it extends `Animal`, and `size` as an extra property on the `Dog` class. They both need to be passed to the constructor function on `Dog`, which is done correctly using constructor 2.
2083+
The `Labrador` class receives two arguments, `name` since it extends `Dog`, and `size` as an extra property on the `Labrador` class. They both need to be passed to the constructor function on `Labrador`, which is done correctly using constructor 2.
20842084
</p>
20852085
</details>
20862086

0 commit comments

Comments
 (0)