Code Highlight

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
* This is some sample code to illustrate how things look!
*/
import Musician from './liverpool';

class Paul extends Musician {
constructor(bass) {
super(bass);
}

get fullName() {
return 'Paul McCartney';
}

perform() {
this.play(this.instrument);
this.sing();
}
}

export default Paul;