class User { public constructor ( name , sex ) { this . name = name ; this . sex = sex ; } private id : string ; private name : string ; private sex : string ; private seat : number = 1 ; private isLandlord : boolean = false ; public getId ( ) { return this . id ; } public getName ( ) { return this . name ; } public getSex ( ) { return this . sex ; } public getSeat ( ) { return this . seat ; } public getILandlord ( ) { return this . isLandlord ; } public setSeat ( seat ) { this . seat = seat ; } public setId ( id ) { this . id = id ; } public setName ( name ) { this . name = name ; } public setLandlord ( isLandlord ) { this . isLandlord = isLandlord ; } }