Skip to content

Commit 33caeae

Browse files
committed
ex-1: introduce subclasses of Bird
1 parent be2e7cf commit 33caeae

File tree

1 file changed

+6
-0
lines changed
  • src/functions-into-class-hierarchy/bird

1 file changed

+6
-0
lines changed

src/functions-into-class-hierarchy/bird/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,9 @@ export class Bird {
2929
}
3030
}
3131
}
32+
33+
export class EuropeanSwallow extends Bird {}
34+
35+
export class AfricanSwallow extends Bird {}
36+
37+
export class NorwegianBlueParrot extends Bird {}

0 commit comments

Comments
 (0)