19 lines
456 B
JavaScript
19 lines
456 B
JavaScript
export class Company {
|
|
constructor(name, catchPhrase, bs) {
|
|
this._name = name;
|
|
this._catchPhrase = catchPhrase;
|
|
this._bs = bs;
|
|
}
|
|
|
|
get name() { return this._name; }
|
|
|
|
get catchPhrase() { return this._catchPhrase; }
|
|
|
|
get bs() { return this._bs; }
|
|
|
|
set name(name) { this._name = name; }
|
|
|
|
set catchPhrase(catchPhrase) { this._catchPhrase = catchPhrase; }
|
|
|
|
set bs(bs) { this._bs = bs; }
|
|
} |