Написал класс Driver, импортировал его в класс Truck

related #2
parent 250bf505
export class Driver {
name: string;
surname: string;
age: number;
experience: number;
constructor (name: string, surname: string, age: number, experience: number) {
this.name = name;
this.surname = surname;
this.age = age;
this.experience = experience;
};
};
\ No newline at end of file
import { Driver } from "./Driver";
export class Truck {
id: number;
name: string;
......
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