| |
| |
Introduction | |
| |
| |
| |
At a Glance | |
| |
| |
| |
| |
| |
Getting Started with C# | |
| |
| |
What Is C#? Why C#? C# Versus Other Programming Languages | |
| |
| |
Preparing to Program | |
| |
| |
The Program Development Cycle | |
| |
| |
Your First C# Program | |
| |
| |
Types of C# Programs | |
| |
| |
| |
| |
| |
Understanding C# Programs | |
| |
| |
C# Applications | |
| |
| |
Basic Parts of a C# Application | |
| |
| |
Structure of a C# Application | |
| |
| |
Analysis of Listing | |
| |
| |
| |
Object-Oriented Programming (OOP) | |
| |
| |
Displaying Basic Information | |
| |
| |
| |
| |
| |
Storing Information with Variables | |
| |
| |
Variables | |
| |
| |
Using Variables | |
| |
| |
Understanding Your Computer's Memory | |
| |
| |
C# Data Types | |
| |
| |
Numeric Variable Types | |
| |
| |
Literals Versus Variables | |
| |
| |
Constants | |
| |
| |
Reference Types | |
| |
| |
| |
| |
| |
Working with Operators | |
| |
| |
Types of Operators | |
| |
| |
Punctuators | |
| |
| |
The Basic Assignment Operator | |
| |
| |
Mathematical/Arithmetic Operators | |
| |
| |
Relational Operators | |
| |
| |
Logical Bitwise Operators | |
| |
| |
Type Operators | |
| |
| |
The sizeof Operator | |
| |
| |
The Conditional Operator | |
| |
| |
Understanding Operator Precedence | |
| |
| |
Converting Data Types | |
| |
| |
Understanding Operator Promotion | |
| |
| |
For Those Brave Enough | |
| |
| |
| |
| |
| |
Control Statements | |
| |
| |
Controlling Program Flow | |
| |
| |
Using Selection Statements | |
| |
| |
Using Iteration Statements | |
| |
| |
Using goto | |
| |
| |
Nesting Flow | |
| |
| |
| |
| |
| |
Classes | |
| |
| |
Object-Oriented Programming Revisited | |
| |
| |
Defining a Class | |
| |
| |
Class Declarations | |
| |
| |
Data Members, aka Fields | |
| |
| |
Static Variables | |
| |
| |
The Application Class | |
| |
| |
Properties | |
| |
| |
A First Look at Namespaces | |
| |
| |
| |
| |
| |
Class Methods and Member Functions | |
| |
| |
Getting Started with Methods | |
| |
| |
Using Methods | |
| |
| |
Program Flow with Methods | |
| |
| |
Format of a Method | |
| |
| |
Passing Values to Methods | |
| |
| |
Types of Class methods | |
| |
| |
Week 1 In Review | |
| |
| |
The WR01.cs Program | |
| |
| |
| |
At a Glance | |
| |
| |
| |
| |
| |
Advanced Data Storage: Structures, Enumerators, and Arrays | |
| |
| |
Structures | |
| |
| |
Enumerators | |
| |
| |
Using Arrays to Store Data | |
| |
| |
Day 9 | |
| |
| |
Advanced Method Access | |
| |
| |
Overloading Methods | |
| |
| |
Using a Variable Number of Parameters | |
| |
| |
Scope | |
| |
| |
Classes with No Objects | |
| |
| |
Namespaces Revisited | |
| |
| |
| |
| |
| |
Handling Exceptions | |
| |
| |
The Concept of Handling Problems | |
| |
| |
Exception Handling | |
| |
| |
Adding Finality with finally | |
| |
| |
Common Exceptions | |
| |
| |
Defining Your Own Exception Classes | |
| |
| |
Throwing Your Own Exceptions | |
| |
| |
checked Versus unchecked Statements | |
| |
| |
| |
| |
| |
Inheritance | |
| |
| |
The Basics of Inheritance | |
| |
| |
Polymorphism and Inherited Classes | |
| |
| |
Virtual Methods | |
| |
| |
Working with Abstract Classes | |
| |
| |
Sealing Classes | |
| |
| |
The Ultimate Base Class: Object | |
| |
| |
Using the is and as Keywords with Classes—Class Conversions | |
| |
| |
Arrays of Different Object Types | |
| |
| |
| |
| |
| |
Better Input and Output | |
| |
| |
Understanding Console Input and Output | |
| |
| |
Formatting Information | |
| |
| |
Working Closer with Strings | |
| |
| |
Getting Information from the Console | |
| |
| |
| |
| |
| |
Interfaces | |
| |
| |
Interfaces—A First Look | |
| |
| |
Defining Interfaces | |
| |
| |
Using Multiple Interfaces | |
| |
| |
Explicit Interface Members | |
| |
| |
Deriving New Interfaces from Existing Ones | |
| |
| |
Hiding Interface Members | |
| |
| |
| |
| |
| |
Indexers, Delegates, and Events | |
| |
| |
Using an Indexer | |
| |
| |
Exploring Delegates | |
| |
| |
Working with Events | |
| |
| |
Creating Events | |
| |
| |
Week 2 in Review | |
| |
| |
Enumerations for the Cards | |
| |
| |
A card T | |