SKIP THE SHIPPING
Use code NOSHIP during checkout to save 40% on eligible eBooks, now through January 5. Shop now.
Register your product to gain access to bonus material or receive a coupon.
C# Primer Plus teaches the C# programming language and relevant parts of the .NET platform from the ground up, walking you through the basics of object-oriented programming, important programming techniques and problem solving while providing a thorough coverage of C#'s essential elements - such as classes, objects, data types, loops, branching statements, arrays, and namespaces.
In early chapters guided tours take you sightseeing to the main attractions of C# and provide a fast learning-path that enables you to quickly write simple C# programs. Your initial programming skills are then gradually expanded, through the many examples, case studies, illustrations, review questions and programming exercises, to include powerful concepts - like inheritance, polymorphism, interfaces and exception handling, along with C#'s most innovative features - such as properties, indexers, delegates and events.
With C# Primer Plus's dual emphasis on C# as well as fundamental programming techniques, this friendly tutorial will soon make you a proficient C# programmer building Windows applications on the .NET platform.
C# Primer Plus Code Answers To Programming Exercises.zip
A Guided Tour through C#: Part I
Introduction.
1. Computers and Computer Programming: Basic Concepts.
C# Is an Object-Oriented Programming Language. Hardware. Software. Summary. Review Questions.
Software Development. The Software Development Process. Algorithms and Pseudocode. The Three Different Types of Errors. Object-Oriented Programming: A First Encounter. Software Reuse. The Assembly, the Basic Unit of Code Reuse in .NET. The .NET Framework Class Library. C#: History and Design Goals. C#'s Background. C#'s Design Goals. What Kind of Programs Can I Write with C#? The Mechanics of Creating a C# Program. Before Getting Started. Choosing a Text Editor. The Seven Steps to Writing a Simple C# Program. A Brief Source Code Analysis. Note on Syntax Errors and Compilers. Summary. Review Questions. Programming Exercises.
Introduction. Abstraction and Encapsulation. An Interactive Hello World! Program. Summary. Review Questions. Programming Exercises.
Introduction. Essential Elements of SimpleCalculator.cs. Simplifying Your Code with Methods. Methods as Building Blocks: Encapsulating Your Helper Methods with the private keyword. Summary. Review Questions. Programming Exercises.
Introduction. Lexical Structure. Some Thoughts on Elevator Simulations. Concepts, Goals and Solutions in an Elevator Simulation Program: Collecting Valuable Statistics for Evaluating an Elevator System. Object-Oriented Programming: A Practical Example. Summary. Review Questions. Programming Exercises.
Introduction. Types in C#: An Overview. Simple Types. The Blipos Clock. Summary. Review Questions. Programming Exercises.
Introduction. Arithmetic Operators and Numerical Expressions. Associativity. Parentheses and Precedence. The Modulus Operator (%). Unary Operators. Determining the Type of an Expression. Combining Different Types in One Expression. Accessing the Metadata of a Component: A Brief Introduction. Enumerated Constants. Enumerator Operators. Conversions. The Methods of System.Enum. Characters and Text. The char Type. The string type. Summary. Review Questions. Programming Exercises.
Introduction to Flow of Control. Branching with the if Statement. Comparison Operators and Boolean Expressions. Nested if Statements. Multibranch if-else Statements. Logical Operators. The Scope of Variables. The goto Statement. The switch Statement. The Conditional Operator. Summary. Review Questions. Programming Exercises.
Traversing, Analyzing, and Generating Sequences of Data. The while Loop Statement. The do-while Loop Statement. The for Loop Statement. The Jump Statements break and continue. Structured Programming and Structured Constructs. Combination Assignment Operators. Nested Iteration Statements. Programming Exercises. Summary. Review Questions. Programming Exercises.
Declaring and Defining an Array. Accessing Individual Array Elements. Array Indexes Out of Range. Adjusting for the Zero-Based Array Index. Initializing Arrays. Traversing an Entire Array with the foreach Statement. System.Array Is a Reference Type. Arrays and Equality. Arrays and Methods. A Method to Perform Array Value Equality Comparisons. Command Line Arguments. Using Arrays As Return Values from Methods. Array Elements Referencing Objects. Arrays As Instance Variables in Classes. Summary. Review Questions. Programming Exercises.
Multidimensional Arrays. Arrays of More Than Two Dimensions. The Built-In Methods of System.Array. Special Array Techniques. Searching. Summary. Review Questions. Programming Exercises.
The Anatomy of a Class: Overview. Data Members. Function Members. Summary. Review Questions. Programming Exercises.
Instance Constructors. static Constructors. The readonly Member. Garbage Collection: Automatic Dynamic Memory Management. Summary. Review Questions. Programming Exercises.
Properties. Indexers: Using Objects Like Arrays. Operator Overloading. User-Defined Implicit and Explicit Conversions. Nested Types. Summary. Review Questions. Programming Exercises.
Defining Your Own Namespaces. The Global Nameless Namespace. Namespaces and Compilation Units. Nested Namespaces. Namespace Syntax. More About the using Directive. Compile Units, Namespaces, and Assemblies. Exploring Assemblies with the Ildasm Utility. Summary. Review Questions. Programming Exercises.
The Need for Inheritance. Inheritance Fundamentals. Access Modifiers and Inheritance. Derived Class Constructors. Indexers Are Also Inherited and Can Be Overridden. Calling an Overridden Function in the Base Class. Reusing the .NET Framework Class Library with Inheritance. Multiple Levels of Derived Classes. Method Overriding and Overloading Are Different Mechanisms. Summary. Review Questions. Programming Exercises.
abstract Methods, Properties, Indexers, and Classes. Polymorphism. Losing and Regaining Type Information. System.Object: The Ultimate Base Class. Summary. Review Questions. Programming Exercises.
Defining a Struct. Boxing and Unboxing. Creating Structs with and without new. Value Types and Reference Types. Summary. Review Questions. Programming Exercises.
Exception Handling: A Brief Overview. Life without try-catch-finally. The try and catch blocks. Catching the Exception Object Farther up the Function Call Chain. Multiple catch Blocks. The finally Block. Nested try Block. throw: Explicitly Throwing Exceptions. Writing Custom Exceptions. Summary. Review Questions. Programming Exercises.
Delegates. Events. Summary. Review Questions. Programming Exercises.
Preprocessor Directives. XML Documentation. Attributes. Summary. Review Questions. Programming Exercises.
The Need for Files. Stream Basics and File I/O. File I/O Classes: An Overview. The FileInfo Class. Text File Input and Output with StreamReader and StreamWriter. Binary Input and Output with the FileStream Class. Summary. Review Questions. Programming Exercises.
Pending Method Instances of Different Methods. Pending Method Instances of the Same Method. Putting Recursion to Work: Calculating n Factorial. Recursion and Iteration. Binary Search Using Recursion. Summary. Review Questions. Programming Exercises.
Chapter 1. Chapter 2. Chapter 3. Chapter 4. Chapter 5. Chapter 6. Chapter 7. Chapter 8. Chapter 9. Chapter 10. Chapter 11. Chapter 12. Chapter 13. Chapter 14. Chapter 15. Chapter 16. Chapter 17. Chapter 18. Chapter 19. Chapter 20. Chapter 21. Chapter 22. Chapter 23.