Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace applicationName
- {
- public class CustomerGroup
- {
- //Members
- private int group_ID;
- private Employee account_Executive = new Employee();
- private List<Customer> customerList = new List<Customer>();
- private List<Customer> unsortedCustomer = new List<Customer>();
- //private DateTime startDate;
- //private int totalTransactions;
- public CustomerGroup()
- {
- //Constructors
- group_ID = 0;
- account_Executive = new Employee();
- List<Customer> unsortedCustomer = new List<Customer>();
- }
- public CustomerGroup(int newgroupID, Employee newaccountExecutive, List<Customer> newUnsortedCustomer)
- {
- group_ID = newgroupID;
- //could say ** Group_ID = group_ID;
- //or ** this.group_ID = group_ID;
- account_Executive = newaccountExecutive;
- unsortedCustomer = newUnsortedCustomer;
- }
- /*
- public CustomerGroup(bool test)
- {
- //Constructors
- group_ID = "TestGroup";
- account_Executive = new Employee();
- List<Customer> unsortedCustomer = new List<Customer>();
- Customer tcust;
- * for (int i = 0; i < 20; i++)
- * {
- * tcust = new Customer(i);
- * customerList.Add(tcust);
- * }
- }
- */
- public int GroupID
- {
- get { return group_ID; }
- set { group_ID = value; }
- }
- public Employee AccountExecutive
- {
- get { return account_Executive; }
- set { account_Executive = value; }
- }
- public List<Customer> CustomerList //I capitalized the word "customer" here, because I kept getting an error in my get-set method
- {
- get { return customerList; }
- set { customerList = value; }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement