Ejemplo n.º 1
0
 public override string ToString()
 {
     return(String.Format("{0}: {1, -20} {2:C}",
                          id.ToString(), name, salary));
 }
 public override string ToString() => $"{_id.ToString()}: {_name, -20} {_salary :C}";