markjprice / cs12dotnet8

Repository for the Packt Publishing book titled "C# 12 and .NET 8 - Modern Cross-Platform Development Fundamentals" by Mark J. Price
564 stars 164 forks source link

Sample code chapter Implementing Interfaces and Inheriting Classes | Inheriting from classes section #63

Closed hsuyanto closed 1 month ago

hsuyanto commented 1 month 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();

markjprice commented 1 month ago

This is already in the errata: https://github.com/markjprice/cs12dotnet8/blob/main/docs/errata/errata.md#page-344---inheriting-from-classes