-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlane.cs
More file actions
36 lines (33 loc) · 1.05 KB
/
Plane.cs
File metadata and controls
36 lines (33 loc) · 1.05 KB
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NET.Model
{
public class Plane : Vehicle
{
public int MaxPassenger { get; set; }
public float MaxSpeed { get; set; }
public float MaxHeight { get; set; }
public string EngineType { get; set; } // better enum
public Plane() : this("ThePlane") { }
public Plane(string name = "ThePlane") : this(name, 300f, 2, 2500f, 20.000, 6.6f, "Piston") { }
public Plane(string name,
float maxSpeed,
int maxPassenger,
float weight,
double price,
float maxHeight,
string engineType)
{
this.Name = name;
this.MaxSpeed = maxSpeed;
this.MaxPassenger = maxPassenger;
this.Weight = weight;
this.Price = price;
this.MaxHeight = maxHeight;
this.EngineType = engineType;
}
}
}