Esempio n. 1
0
 public override string ToString()
 {
     return("\nEmployee Number: " + EmployeeNumber +
            "\n           Name: " + Name +
            "\n   Date of Hire: " + DateOfHire.ToShortDateString() +
            "\n Monthly Salary: " + MonthlySalary.ToString("C"));
 }
Esempio n. 2
0
 public override string ToString()
 {
     return($"ID: {EmployeeID} - {base.ToString()}\nHire Date: {DateOfHire.ToShortDateString()}\tActive Employee: {IsEmployed.ToYesNo(), 3}\t Salary: {AnnualSalary:c2}");
 }