markjprice / cs12dotnet8

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

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

Closed hsuyanto closed 4 months ago

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

markjprice commented 4 months ago

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