-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCar.cs
More file actions
25 lines (23 loc) · 687 Bytes
/
Car.cs
File metadata and controls
25 lines (23 loc) · 687 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NET.Model
{
public class Car : Vehicle
{
public int MaxPassenger { get; set; }
public float MaxSpeed { get; set; }
public Car() : this("TheCar") { }
public Car(string name) : this(name, 150f, 4, 2.5f, 1000.99) { }
public Car(string name, float maxSpeed, int maxPassenger, float weight, double price)
{
this.Name = name;
this.MaxSpeed = maxSpeed;
this.MaxPassenger = maxPassenger;
this.Weight = weight;
this.Price = price;
}
}
}