export default class Memento { private _state : string ; constructor ( state ) { this . _state = state ; } get state ( ) : string { console . log ( "get memento's state" ) ; return this . _state ; } }