Beispiel #1
0
 //overloaded constructor
 public Person(string inFirstName, string inLastName, string inPhoneNumber, Address inAddress)
 {
     FirstName = inFirstName;
     LastName = inLastName;
     PhoneNumber = inPhoneNumber;
     this.Address = inAddress;
 }
Beispiel #2
0
 //overloaded constructor
 public Employee(bool inPayRoll, string inJobTitle, double inWage, double inHoursWorked,
                 string inFirstName, string inLastName, string inPhoneNumber, Address inAddress)
 {
     this.OnPayRoll = inPayRoll;
     this.JobTitle = inJobTitle;
     this.Wage = inWage;
     this.HoursWorked = inHoursWorked;
     this.FirstName = inFirstName;
     this.LastName = inLastName;
     this.PhoneNumber = inPhoneNumber;
     this.Address = inAddress;
 }