Overview
This 5-day, lecture-and-lab course presents object-oriented programming with Visual C# 2008. Key topics include the Visual C# 2008 Express IDE (or Visual Studio 2008), classes, objects, encapsulation, interfaces, inheritance, polymorphism, abstract classes, creating class libraries, Language Integrated Query (LINQ), an introduction to generic collections, event-driven programming, graphical user interfaces (GUIs) with Windows Forms and exception handling. Students create C# applications, understand C# object-oriented programming, learn to use various .NET Framework Class Library classes and participate in extensive laboratory assignments for hands on experience. After taking this course and gaining some practical Visual C# programming experience, students will be prepared to take VC#300—Advanced Visual C# 2008.
Prerequisites
Introduction
Review of C# syntax and concepts presented in the following chapters of Visual C# 2008 How to Program, 3/e:
- Chapter 2—Introduction to the Visual C# 2008 Express IDE
- Chapter 3—Introduction to C# Applications
- Chapter 4—Introduction to Classes and Objects
- Chapter 5—Control Statements: Part 1
- Chapter 6—Control Statements: Part 2
- Chapter 7—Methods: A Deeper Look
- Chapter 8—Arrays
Introduction to LINQ and Generic Collections
- Querying an Array Using LINQ
- Introduction to Collections
- Querying a Generic Collection Using LINQ
- Deitel LINQ Resource Center
Classes and Objects: A Deeper Look
- Time Class Case Study
- Controlling Access to Members
- Referring to the Current Object’s Members with the this Reference
- Indexers
- Time Class Case Study: Overloaded Constructors
- Default and Parameterless Constructors
- Composition
- Garbage Collection and Destructors
- static Class Members
- readonly Instance Variables
- Time Class Case Study: Creating Class Libraries
- Class View and Object Browser
Object-Oriented Programming: Inheritance
- Base Classes and Derived Classes
- protected Members
- Relationship between Base Classes and Derived Classes
- Creating and Using a CommissionEmployee Class
- Creating a BasePlusCommissionEmployee Class without Using Inheritance
- Creating a CommissionEmployee–BasePlusCommissionEmployee Inheritance Hierarchy
- CommissionEmployee–BasePlusCommissionEmployee Inheritance Hierarchy Using protected Instance Variables
- CommissionEmployee–BasePlusCommissionEmployee Inheritance Hierarchy Using private Instance Variables
- Class object
Polymorphism, Interfaces & Operator Overloading
- Polymorphism Examples
- Demonstrating Polymorphic Behavior
- Abstract Classes and Methods
- Case Study: Payroll System Using Polymorphism
- Operator is and Downcasting
- Summary of the Allowed Assignments Between Base Class and Derived Class Variables
- sealed Methods and Classes
- Case Study: Creating and Using Interfaces
- Common Interfaces of the .NET Framework Class Library
- Operator Overloading
Exception Handling
- Exception Handling Overview
- Example: Divide by Zero Without Exception Handling
- Handling DivideByZeroExceptions and FormatExceptions
- Enclosing Code in a try Block
- Catching Exceptions
- Uncaught Exceptions
- Termination Model of Exception Handling
- Flow of Control When Exceptions Occur
- .NET Exception Hierarchy
- Determining Which Exceptions a Method Throws
- finally Block
- Exception Properties
- User-Defined Exception Classes
Graphical User Interfaces with Windows Forms
- Windows Forms
- Event Handling
- A Simple Event-Driven GUI
- Another Look at the Visual Studio Generated Code
- Delegates and the Event-Handling Mechanism
- Other Ways to Create Event Handlers
- Locating Event Information
- Control Properties and Layout
- Labels, TextBoxes and Buttons
- GroupBoxes and Panels
- CheckBoxes and RadioButtons
- PictureBoxes
- ToolTips
- NumericUpDown Control
- Mouse-Event Handling
Price
- $12,995 lecture fee for up to 20 students maximum. Add $1,000 for international or custom classes.
- Client purchases the books, at its own expense, directly from Pearson (the publisher) at the discounted Deitel rate.
- Instructor Travel Reimbursement (if travel is required).
Courses in the Visual C# 2008 Curriculum
