Создал класс Truck

related #2
parent 7ac20e52
export class Truck {
id: number;
name: string;
driver: Driver;
private _state: TruckState;
private _stringState: string;
constructor (id: number, name: string, driver: Driver) {
this.id = id;
this.name = name;
this.driver = driver;
this._state = new BaseState();
this._stringState = this._state.name;
};
};
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment