Created
September 28, 2017 12:29
-
-
Save mahamshahid18/f016c24ccdbfec85f82abbb8e72151c2 to your computer and use it in GitHub Desktop.
Node.js code sample generated after implementing code compliance
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
'use strict'; | |
const User = require('./User'); | |
/** | |
* Creates an instance of Employee | |
*/ | |
class Employee extends User { | |
/** | |
* @constructor | |
* @param {Object} obj The object passed to constructor | |
*/ | |
constructor(obj) { | |
super(obj); | |
if (obj === undefined || obj === null) return; | |
this.name = this.constructor.getValue(obj.name); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment