-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCar.cs
More file actions
39 lines (32 loc) · 1018 Bytes
/
Car.cs
File metadata and controls
39 lines (32 loc) · 1018 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectC_
{
public class Car
{
public int id { get; set; }
public string name { get; set; }
public string model { get; set; }
public int manufYear { get; set; }
public string VIN { get; set; }
public string color { get; set; }
public int MaxSpeed { get; set; }
public Car(int id , string name , string model , int manufYear, string VIN, string color,int MaxSpeed)
{
this.id = id;
this.name = name;
this.model = model;
this.manufYear = manufYear;
this.VIN = VIN;
this.color = color;
this.MaxSpeed = MaxSpeed;
}
public override string ToString()
{
return $"ID:{id}, name:{name}, model:{model}, manufYear:{manufYear}, VIN:{VIN}, Color:{color}, maxspeed:{MaxSpeed}";
}
}
}