Head First C#

Errata for Head First C#

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.


Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update



Version Location Description Submitted By Date Submitted
Printed Page 213
Part 2, fourth star

In the form there is another change necessary, that must go from private void numericUpDown1_ValueChanged(object sender, EventArgs e) { dinnerParty.numberOfPeople = (int)numericUpDown1.Value; DisplayDinnerPartyCost(); } to private void numericUpDown1_ValueChanged(object sender, EventArgs e) { dinnerParty.NumberOfPeople = (int)numericUpDown1.Value; DisplayDinnerPartyCost(); } The dinnerParty.NumberOfPeople must be for the property NumberOfPeople not the field numberOfPeople. This is error cam after the suggestion of using camleCase for fields, I was using camel case from before. Maybe is not an error that everyone comes across but I wanted to point it out.

Anonymous  Jul 13, 2015 
Printed Page 305
First abstract class, Line 11

In the pool options there is no "return face" option and the code seems to want only one snippet, this needs to be changed to make it two snippets in the code or add the "return face" option in the pool.

Gustavo Cardona  Jul 23, 2015 
PDF Page 349
Top right corner of the page

In the top right corner of the page, the following text is shown: "We left out the code you already saw a few pages ago to initialize the list. Make sure you initialize your list before you try to sort it! If you don’t, you’ll get a null pointer exception." This text points to the "new DuckComparerBySize()" initialization (by means of an arrow), but this is incorrect as the text refers to the initialization of the "ducks" List.

Anonymous  Nov 25, 2014