// 16 - Arrays\Arrays of Reference Types
class Employee
{
public static Employee LoadFromDatabase(int employeeID)
{
Employee emp = new Employee();
return(emp);
}
}
public class ArraysofReferenceTypes
{
public static void Main()
{
Employee[] emps = new Employee[3];
emps[0] = Employee.LoadFromDatabase(15);
emps[1] = Employee.LoadFromDatabase(35);
emps[2] = Employee.LoadFromDatabase(255);
}
}
|