EVERYDAY FREE SHIPPING on $25 & up  Excludes Marketplace items
EVERYDAY FREE SHIPPING
on $25 & up
 Excludes Marketplace
C# Design Patterns : A Tutorial / With CD

C# Design Patterns : A Tutorial / With CD - 03 edition

ISBN13: 978-0201844535

Cover of C# Design Patterns : A Tutorial / With CD 03 (ISBN 978-0201844535)
ISBN13: 978-0201844535
ISBN10: 0201844532

Cover type: Paperback
Edition: 03
Copyright: 2003
Publisher: Addison-Wesley Longman, Inc.
Published: 2003
International: No

List price: $69.99

More Shipping Options

C# Design Patterns : A Tutorial / With CD - 03 edition

ISBN13: 978-0201844535

James William Cooper

ISBN13: 978-0201844535
ISBN10: 0201844532

Cover type: Paperback
Edition: 03
Copyright: 2003
Publisher: Addison-Wesley Longman, Inc.
Published: 2003
International: No
Summary

This is a practical book that explains how to write C# programs using some of the most common design patterns. With the release of C# and Visual Studio .NET, there is a new interest in the Microsoft development community in some of the OO world's key tools, such as UML and Design Patterns, which they had neglected before. The book covers every pattern identified in Gamma et al's Design Patterns which can be executed in C#. For each pattern, it starts with a brief verbal description, and then builds simple example programs. Each of these examples is a visual program that can be run and examined to make the pattern as concrete a concept as possible. All of the examples will be on the companion CD. The emphasis is on the practical ways to use these patterns to ease the developer's day to day work. This book should be well timed for the growing number of developers who have learned the basics of C#, and now want information on how to get the most out of C# in their real-world application development.

Author Bio

Cooper, James W. : IBM Thomas J. Watson Research Center

James W. Cooper is a research staff member in the Advanced Information Retrieval and Analysis Department at the IBM Thomas J. Watson Research Center. He is also a columnist for Java Pro magazine and a reviewer for Visual Basic Programmer's Journal. He has published 14 books, which include Principles of Object-Oriented Programming Using Java 1.1 (Ventana) and The Visual Basic Programmer's Guide to Java (Ventana).

Table of Contents

Preface.Acknowledgments.

I. OBJECT-ORIENTED PROGRAMMING IN C#. 1. What Are Design Patterns?Defining Design Patterns.The Learning Process.Studying Design Patterns.Notes on Object-Oriented Approaches.C# Design Patterns.How This Book Is Organized.2. Syntax of the C# Language.Data Types.Converting between Numbers and Strings.Declaring Multiple Variables.Numeric Constants.Character Constants.Variables.Declaring Variables as You Use Them.Multiple Equals Signs for Initialization.A Simple C# Program.Arithmetic Operators.Increment and Decrement Operators.Combining Arithmetic and Assignment Statements.Making Decisions in C#.Comparison Operators.Combining Conditions.The Most Common Mistake.The Switch Statement.C# Comments.The Ornery Ternary Operator.Looping Statements in C#.The While Loop.The Do-While Statement.The For Loop.Declaring Variables as Needed in For Loops.Commas in For Loop Statements.How C# Differs from C.How C# Differs from Java.Summary.3. Writing Windows C# Programs.Objects in C#.Managed Languages and Garbage Collection.Classes and Namespaces in C#.Building a C# Application.The Simplest Window Program in C#.Windows Controls.Labels.TextBox.CheckBox.Buttons.Radio Buttons.ListBoxes and ComboBoxes.The Items Collection.Menus.ToolTips.The Windows Controls Program.Summary.Programs on the CD-ROM.4. Using Classes and Objects in C#.What Do We Use Classes For?A Simple Temperature Conversion Program.Building a Temperature Class.Converting to Kelvin.Putting the Decisions into the Temperature Class.Using Classes for Format and Value Conversion.Handling Unreasonable Values.A String Tokenizer Class.Classes as Objects.Class Containment.Initialization.Classes and Properties.Programming Style in C#.Delegates.Indexers.Operator Overloading.Summary.Programs on the CD-ROM.5. Inheritance.Constructors.Drawing and Graphics in C#.Using Inheritance.Namespaces.Creating a Square from a Rectangle.Public, Private, and Protected.Overloading.Virtual and Override Keywords.Overriding Methods in Derived Classes.Replacing Methods Using New.Overriding Windows Controls.Interfaces.Abstract Classes.Comparing Interfaces and Abstract Classes.Summary.Programs on the CD-ROM.6. UML Diagrams.Inheritance.Interfaces.Composition.Annotation.WithClass UML Diagrams.C# Project Files.7. Arrays, Files, and Exceptions in C#.Arrays.Collection Objects.ArrayLists.Hashtables.SortedLists.Exceptions.Multiple Exceptions.Throwing Exceptions.File Handling.The File Object.Reading a Text File.Writing a Text File.Exceptions in File Handling.Testing for End of File.A csFile Class.Program on the CD-ROM.

II. CREATIONAL PATTERNS. 8. The Simple Factory Pattern.How a Simple Factory Works.Sample Code.The Two Derived Classes.Building the Simple Factory.Using the Factory.Factory Patterns in Math Computation.Summary.Thought Questions.Programs on the CD-ROM.9. The Factory Method.The Swimmer Class.The Events Classes.StraightSeeding.CircleSeeding.Our Seeding Program.Other Factories.When to Use a Factory Method.Thought Question.Program on the CD-ROM.10. The Abstract Factory Pattern.A GardenMaker Factory.The PictureBox.Handling the RadioButton and Button Events.Adding More Classes.Consequences of Abstract Factory.Thought Question.Program on the CD-ROM.11. The Singleton Pattern.Creating Singleton Using a Static Method.Exceptions and Instances.Throwing the Exception.Creating an Instance of the Class.Providing a Global Point of Access to a Singleton.Other Consequences of the Singleton Pattern.Programs on the CD-ROM.12. The Builder Pattern.An Investment Tracker.The Stock Factory.The CheckChoice Class.The ListboxChoice Class.Using the Items Collection in the ListBox Control.Plotting the Data.The Final Choice.Consequences of the Builder Pattern.Thought Questions.Program on the CD-ROM.13. The Prototype Pattern.Cloning in C#.Using the Prototype.Cloning the Class.Using the Prototype Pattern.Dissimilar

Digital Rights

eBook Requirements
VitalSource Bookshelf Reader
Minimum System Requirements:
  • Windows 7/8, or Mac OS X 10.6 or above
Software Requirements:

eTextbooks and eChapters can be viewed by using the free reader listed below.

Be sure to check the format of the eTextbook/eChapter you purchase to know which reader you will need. After purchasing your eTextbook or eChapter, you will be emailed instructions on where and how to download your free reader.

Download Requirements:

Due to the size of eTextbooks, a high-speed Internet connection (cable modem, DSL, LAN) is required for download stability and speed. Your connection can be wired or wireless.

Being online is not required for reading an eTextbook after successfully downloading it. You must only be connected to the Internet during the download process.

User Help:

Click Here to access the VitalSource Bookshelf FAQ

Digital Rights
VitalSource Bookshelf
Copying: Allowed, 2 selections may be copied every 365 days
Printing: Allowed, 2 prints for 365 days
Expires: Yes, may be used for 365 days after activation
Reading Aloud: Allowed
Sharing: Not Allowed
Min. Software Version: VitalSource Bookshelf
Suitable Devices: PCs, Tablet PCs, Macs, Laptops


Digital Rights Management (DRM) Key


Copying - Books that cannot be copied will show "Not Allowed." Otherwise, this will detail the number of times it can be copied, or "Allowed with no limits."

Printing - Books that cannot be printed will show "Not Allowed." Otherwise, this will detail the number of times it can be printed, or "Allowed with no limits."

Expires - Books that have no expiration (the date upon which you will no longer be able to access your eBook) will read "No Expiration." Otherwise it will state the number of days from activation (the first time you actually read it).

Reading Aloud - Books enabled with the "text-to-speech" feature so that they can be read aloud will show "Allowed."

Sharing - Books that cannot be shared with other computers will show "Not Allowed."

Min. Software Version - This is the minimum software version needed to read this book.

Suitable Devices - Hardware known to be compatible with this book. Note: Reader software still needs to be installed.

List price: $69.99
  • Marketplace
  • From
More Shipping Options