Created
May 1, 2020 16:24
-
-
Save msacar/127913221d1479d0a9997a3b6bdba3b6 to your computer and use it in GitHub Desktop.
src/Teacher.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Person} from './Person'; | |
class Teacher extends Person { | |
constructor(name){ | |
super(name) | |
this.job = "Teacher" | |
} | |
work(){ | |
console.log(`${this.name} Teaching.`) | |
} | |
} | |
export { Teacher } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment