Skip to content

Instantly share code, notes, and snippets.

@mahamshahid18
Created September 28, 2017 12:29
Show Gist options
  • Save mahamshahid18/f016c24ccdbfec85f82abbb8e72151c2 to your computer and use it in GitHub Desktop.
Save mahamshahid18/f016c24ccdbfec85f82abbb8e72151c2 to your computer and use it in GitHub Desktop.
Node.js code sample generated after implementing code compliance
'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