Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
lab10
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Анамария Морено
lab10
Commits
b0e86b91
Commit
b0e86b91
authored
Nov 26, 2023
by
Муратханов Тимурхан
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Написал класс Driver, импортировал его в класс Truck
related #2
parent
250bf505
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
Driver.ts
src/Driver.ts
+13
-0
Truck.ts
src/Truck.ts
+2
-0
No files found.
src/Driver.ts
0 → 100644
View file @
b0e86b91
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
src/Truck.ts
View file @
b0e86b91
import
{
Driver
}
from
"./Driver"
;
export
class
Truck
{
id
:
number
;
name
:
string
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment