forked from zengpengkindle/CommonUsedFunctions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProduct.cs
More file actions
51 lines (44 loc) · 1 KB
/
Copy pathProduct.cs
File metadata and controls
51 lines (44 loc) · 1 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* Created by:Rong Fan
* email:rong.fan1031@gmail.com
* Desc: sigleton design pattern
* Dt: 2016-9-6
* Version:.NET 2.0
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace DesignPattern
{
public abstract class Product
{
int id;
string name;
decimal pricePerDay;
DateTime startDateTime, endDateTime;
public DateTime EndDateTime
{
get { return endDateTime; }
set { endDateTime = value; }
}
public DateTime StartDateTime
{
get { return startDateTime; }
set { startDateTime = value; }
}
public decimal PricePerDay
{
get { return pricePerDay; }
set { pricePerDay = value; }
}
public int Id
{
get { return id; }
set { id = value; }
}
public string Name
{
get { return name; }
set { name = value; }
}
}
}