Created
May 1, 2020 16:22
-
-
Save msacar/c2aa111825ead8390f006044f6d1d4ab to your computer and use it in GitHub Desktop.
src/Student.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 Student extends Person { | |
constructor(name){ | |
super(name) | |
this.job = "Student" | |
} | |
work(){ | |
console.log(`${this.name} Studying.`) | |
} | |
} | |
export { Student } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment