import Currency from './Currency'; export default class Money { private _currency: Currency; private _amount: number; constructor(currency: Currency, amount: number) { this._currency = currency; this._amount = amount; } get currency(): Currency { return this._currency; } set currency(value: Currency) { this._currency = value; } get amount(): number { return this._amount; } set amount(value: number) { this._amount = value; } }