예제 #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="id">ID.</param>
 /// <param name="name">Name.</param>
 /// <param name="size">Size.</param>
 /// <param name="address">Address.</param>
 /// <param name="occupation">Occupation.</param>
 public Company(int id, string name, int size, Address address, string occupation)
 {
     Id = id;
     Name = name;
     Size = size;
     Address = address;
     Occupation = occupation;
 }
예제 #2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="id">ID.</param>
        /// <param name="name">Name.</param>
        /// <param name="companyId">Company ID.</param>
        /// <param name="age">Age.</param>
        /// <param name="sexType">Sex type.</param>
        /// <param name="salary">Salary.</param>
        /// <param name="address">Address.</param>
        /// <param name="department">Department.</param>
        /// <param name="payloadSize">Payload size.</param>
        public Employee(int id, string name, int companyId, int age, Sex sexType, long salary, Address address,
            Department department, int payloadSize)
        {
            Id = id;
            Name = name;
            CompanyId = companyId;
            Age = age;
            SexType = sexType;
            Salary = salary;
            Address = address;
            Department = department;

            Payload = new byte[payloadSize];

            Points = 100;
        }