-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOther.cs
35 lines (29 loc) · 830 Bytes
/
Other.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FinalProject
{
internal class Other : Part
{
// Private fields
private string type = "";
// Properties
public string Type
{
get { return type; }
set { type = value; }
}
// Constructor
public Other(string t, string v, float p, string m, string mk, string c) : base(v, p, m, mk, c)
{
Type = t;
}
// Overrides base class display method
public override string getData()
{
return "Other," + base.getData() + ",Type of Part: " + Type;
}
}
}