class Lodgement { constructor (data) { this.square=data.square; } getSquare () { return this.square; } } class OfficeLodge extends Lodgement { constructor (data) { super(data); this.companyName=data.name; } getName () { return 'It is a : ' + this.companyName; } }
Text
const SimpleDate = (function() { let _years; class SimpleDate { constructor(year, month, day) { _years = year; this.months = month; this.days = day; } getYear() { return _year; } } return SimpleDate; }()); І
By just Just