Skip to content

Commit 6a06e7e

Browse files
committed
all tests pass
1 parent 9fd16dd commit 6a06e7e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/class.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ class Animal {
4242
// Cat.prototype.name = 'whiskers';
4343
// Cat.prototype.meow = () => `${this.name} meowed!`;
4444

45-
// class Cat extends Animal {
46-
// constructor(options) {
47-
// super(options);
48-
// this.name = options.name;
49-
// }
50-
// meow() {
51-
// return `${this.name} meowed!`;
52-
// }
53-
// }
45+
class Cat extends Animal {
46+
constructor(options) {
47+
super(options);
48+
this.name = options.name;
49+
}
50+
meow() {
51+
return `${this.name} meowed!`;
52+
}
53+
}
5454

5555
module.exports = {
5656
User,

0 commit comments

Comments
 (0)