-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
45 lines (40 loc) · 1.3 KB
/
Program.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
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
namespace Classes
{
class Program
{
static void Main(string[] args)
{
// Create an instance of a company. Name it whatever you like.
Company Ingram = new Company("Ingram", new DateTime(2022, 11, 22)); //why new before DateTime?
// Create three employees
List<Employee> EmployeeList = new List<Employee> {
new Employee() {
FirstName = "Bob",
LastName = "Builder",
Title = "Software Dev",
StartDate = new DateTime(2022, 09, 28)
},
new Employee() {
FirstName = "Michael",
LastName = "Scott",
Title = "Boss",
StartDate = new DateTime(2021, 02, 17)
},
new Employee() {
FirstName = "Rebekah",
LastName = "Taylor",
Title = "Junior Software Dev",
StartDate = new DateTime()
}
};
// Assign the employees to the company
Ingram.Employees = EmployeeList;
/*
Iterate the company's employee list and generate the
simple report shown above
*/
}
}
}