p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning Visual C# 2010 (http://p2p.wrox.com/forumdisplay.php?f=563)
-   -   Chapter 4 errata (http://p2p.wrox.com/showthread.php?t=81015)

notig September 22nd, 2010 12:42 PM

Chapter 4 errata
 
I went to use the errata form but it required a whole bunch of personal information that I did not feel like giving out. I am not sure why it did that but......... I found something which I believe is MINOR. anyways...

chapter 4 page 77... it says "The switch statement itself attempts to match the string entered with the constant values you have defined,
and, if successful, writes out a personalized message to greet the user. If no match is made, you offer a
generic greeting."

What it says there and what they actually did with the code are two different things. Instead of offering a generic greeting when "no match is made" it offers a generic greeting no matter what because it is done outside of the switch statement. If they wanted to code for what they actually meant (I think) then they should have added the generic greeting through the default statement. Like this:

default:
Console.WriteLine("Hello {0}!", name);
break;

notig September 23rd, 2010 10:27 AM

page 177

"The preceding code is also able detect strings like this:"


it is missing a to between able and detect.........

Chapter 9, exercise 4-5 . In the answers section they added Two interfaces to the pickup class....... not one. However in the Diagram they tell you to follow there are not two lines connecting the Pickup to each of the interfaces. This
can leads to code not the same as in their answer.


All times are GMT -4. The time now is 04:23 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.