Closed hsuyanto closed 4 months ago
on steps no. 3 sample code: Employee john = new() { Name = "John Jones", Born = new(year: 1990, month: 7, day: 28, hour: 0, minute: 0, second: 0, offset: TimeSpan.Zero)) //extra closing parenthesis need to be removed }; john.WriteToConsole();
should be: Employee john = new() { Name = "John Jones", Born = new(year: 1990, month: 7, day: 28, hour: 0, minute: 0, second: 0, offset: TimeSpan.Zero) }; john.WriteToConsole();
This is already in the errata: https://github.com/markjprice/cs12dotnet8/blob/main/docs/errata/errata.md#page-344---inheriting-from-classes
on steps no. 3 sample code: Employee john = new() { Name = "John Jones", Born = new(year: 1990, month: 7, day: 28, hour: 0, minute: 0, second: 0, offset: TimeSpan.Zero)) //extra closing parenthesis need to be removed }; john.WriteToConsole();
should be: Employee john = new() { Name = "John Jones", Born = new(year: 1990, month: 7, day: 28, hour: 0, minute: 0, second: 0, offset: TimeSpan.Zero) }; john.WriteToConsole();