1: public class Customer
2: {
3: private string address;
4: private string companyName;
5: private string contactName;
6: private int id;
7: private bool isActivated;
8: private decimal salesPotential;
9:
10: private Customer(){}
11:
12: public Customer(string contactName)
13: {
14: ContactName = contactName;
15: }
16:
17: public int Id
18: {
19: get { return id; }
20: private set { id = value; }
21: }
22:
23: public string Address
24: {
25: get { return address; }
26: set { address = value; }
27: }
28:
29: public decimal SalesPotential
30: {
31: get { return salesPotential; }
32: set { salesPotential = value; }
33: }
34:
35: public bool IsActivated
36: {
37: get { return isActivated; }
38: set { isActivated = value; }
39: }
40:
41: public string CompanyName
42: {
43: get { return companyName; }
44: set { companyName = value; }
45: }
46:
47: public string ContactName
48: {
49: get { return contactName; }
50: set { contactName = value; }
51: }
52: }