Copyright


Copyright


[Page iv]

Library of Congress Cataloging-in-Publication Data On file

Vice President and Editorial Director, ECS: Marcia J. Horton

Associate Editor: Jennifer Cappello

Assistant Editor: Carole Snyder

Executive Managing Editor: Vince O'Brien

Managing Editor: Bob Engelhardt

Production Editors: Donna M. Crilly, Marta Samsel

Director of Creative Services: Paul Belfanti

A/V Production Editor: Xiaohong Zhu

Art Studio: Artworks, York, PA

Creative Director: Juan López

Art Director: Kristine Carney

Cover Design: Abbey S. Deitel, Harvey M. Deitel, Bob Depew, Kristine Carney

Interior Design: Harvey M. Deitel, Kristine Carney

Manufacturing Manager: Alexis Heydt-Long

Manufacturing Buyer: Lisa McDowell

Executive Marketing Manager: Robin O'Brien

Marketing Assistant: Barrie Reinhold

© 2006 by Pearson Education, Inc.

Upper Saddle River, New Jersey 07458

The authors and publisher of this book have used their best efforts in preparing this book. These efforts include the development, research, and testing of the theories and programs to determine their effectiveness. The authors and publisher make no warranty of any kind, expressed or implied, with regard to these programs or to the documentation contained in this book. The authors and publisher shall not be liable in any event for incidental or consequential damages in connection with, or arising out of, the furnishing, performance, or use of these programs.

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks and registered trademarks. Where those designations appear in this book, and Prentice Hall and the authors were aware of a trademark claim, the designations have been printed in initial caps or all caps. All product names mentioned remain trademarks or registered trademarks of their respective owners.

All rights reserved. No part of this book may be reproduced, in any form or by any means, without permission in writing from the publisher.

Printed in the United States of America

10 9 8 7 6 5 4 3 2 1


Pearson Education Ltd., London
Pearson Education Australia Pty. Ltd., Sydney
Pearson Education Singapore, Pte. Ltd.
Pearson Education North Asia Ltd., Hong Kong
Pearson Education Canada, Inc., Toronto
Pearson Educacion de Mexico, S.A. de C.V.
Pearson EducationJapan, Tokyo
Pearson Education Malaysia, Pte. Ltd.
Pearson Education, Inc., Upper Saddle River, New Jersey


[Page vi]

Trademarks

Microsoft® Visual Studio® 2005 are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.

Object Management Group™, OMG™, Unified Modeling Languag™e and UML™ are trademarks of Object Management Group, Inc.

[Page vii]

Dedication

To JoséAntonio González Seco: It's a privilege for us to work with such an extraordinary and unselfish reviewer. Extraordinary with regard to the depth and breadth of your C# knowledgeand unselfish with regard to the remarkable amount of time you devoted to helping us "get it right."

Harvey M. Deitel and Paul J. Deitel



[Page ii]

Deitel® Series Page

How To Program Series

Advanced Java™ 2 Platform How to Program

C How to Program, 4/e

C++ How to Program, 5/eIncluding Cyber Classroom

e-Business and e-Commerce How to Program

Internet and World Wide Web How to Program, 3/e

Java™ How to Program, 6/eIncluding Cyber Classroom

Perl How to Program

Python How to Program

Small C++ How to Program, 5/eIncluding Cyber Classroom

Small Java™ How to Program, 6/eIncluding Cyber Classroom

Visual C++® .NET How to Program

Visual C#® 2005 How to Program, 2/e

Visual Basic® 2005 How to Program, 3/e

Wireless Internet & Mobile Business How to Program

XML How to Program


[Page iii]

Simply Series

Simply C++: An Application-Driven Tutorial Approach

Simply C#: An Application-Driven Tutorial Approach

Simply Java™ Programming: An Application-Driven Tutorial Approach

Simply Visual Basic® .NET: An Application-Driven Tutorial Approach (Visual Studio .NET 2002 Edition)

Simply Visual Basic® .NET 2003: An Application-Driven Tutorial Approach

Computer Science Series

Operating Systems, 3/e

Also Available

SafariX Web Books www.SafariX.com

To follow the Deitel publishing program, please register at:

www.deitel.com/newsletter/subscribe.html

for the free Deitel® Buzz Online e-mail newsletter.

To communicate with the authors, send e-mail to:

deitel@deitel.com

For information on corporate on-site seminars offered by Deitel & Associates, Inc. worldwide, visit:

www.deitel.com

or write to

deitel@deitel.com

For continuing updates on Prentice Hall/Deitel publications visit:

www.deitel.com,

www.prenhall.com/deitel or

www.InformIT.com/deitel