Object-Oriented Programming in C# (VS 2012)

Similar documents
Object-Oriented Programming in C# (VS 2015)

Prerequisites: The student should have programming experience in a high-level language. ITCourseware, LLC Page 1. Object-Oriented Programming in C#

Course Syllabus C # Course Title. Who should attend? Course Description

Learning C# 3.0. Jesse Liberty and Brian MacDonald O'REILLY. Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo

C# Programming in the.net Framework

Student Guide Revision 1.0

102. Introduction to Java Programming

Object-Oriented Programming in C# Evaluation Copy. Student Guide Revision 4.5. Object Innovations Course 4101

EVALUATION COPY. Object-Oriented Programming in C# Student Guide Revision 4.6. Unauthorized reproduction or distribution is prohibited.

Course Hours

CHAPTER 1: INTRODUCING C# 3

Introduction to Programming Using Java (98-388)

Variable Scope The Main() Function Struct Functions Overloading Functions Using Delegates Chapter 7: Debugging and Error Handling Debugging in Visual

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix

Introduce C# as Object Oriented programming language. Explain, tokens,

Microsoft Visual C# Step by Step. John Sharp

COPYRIGHTED MATERIAL. Contents. Part I: C# Fundamentals 1. Chapter 1: The.NET Framework 3. Chapter 2: Getting Started with Visual Studio

Programming in C# with Microsoft Visual Studio 2010

PROGRAMMING IN VISUAL BASIC WITH MICROSOFT VISUAL STUDIO Course: 10550A; Duration: 5 Days; Instructor-led

C# Programming: From Problem Analysis to Program Design. Fourth Edition

Programming in Visual Basic with Microsoft Visual Studio 2010

"Charting the Course... MOC Programming in C# with Microsoft Visual Studio Course Summary

Table of Contents Preface Bare Necessities... 17

Microsoft. Microsoft Visual C# Step by Step. John Sharp

Absolute C++ Walter Savitch

C++ (Non for C Programmer) (BT307) 40 Hours

C # Language Specification

10266 Programming in C Sharp with Microsoft Visual Studio 2010

The C# Programming Language. Overview

MCSA Universal Windows Platform. A Success Guide to Prepare- Programming in C# edusum.com

Oops known as object-oriented programming language system is the main feature of C# which further support the major features of oops including:

Java Programming Course Overview. Duration: 35 hours. Price: $900

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17

Evaluation Copy. C# Essentials. Student Guide Revision 4.5. Object Innovations Course 4102

Deitel Series Page How To Program Series

Syllabus & Curriculum for Certificate Course in Java. CALL: , for Queries

CHAPTER 1 Introduction to Computers and Programming CHAPTER 2 Introduction to C++ ( Hexadecimal 0xF4 and Octal literals 031) cout Object

20483BC: Programming in C#

Java Fundamentals p. 1 The Origins of Java p. 2 How Java Relates to C and C++ p. 3 How Java Relates to C# p. 4 Java's Contribution to the Internet p.

Object-Oriented Programming

Evaluation Copy. Visual Basic Essentials. Student Guide Revision 4.5. Object Innovations Course 4202

Weiss Chapter 1 terminology (parenthesized numbers are page numbers)

CO Java SE 8: Fundamentals

CHAPTER 1: INTRODUCTION TO THE IDE 3

DC69 C# &.NET DEC 2015

Advanced Object-Oriented Programming. 11 Features. C# Programming: From Problem Analysis to Program Design. 4th Edition

Contents. 1 Introduction to Computers, the Internet. Before You Begin

Learning to Program in Visual Basic 2005 Table of Contents

OVERVIEW ENVIRONMENT PROGRAM STRUCTURE BASIC SYNTAX DATA TYPES TYPE CONVERSION

Contents. Before You Begin. Object Technology: A Brief Review

(800) Toll Free (804) Fax Introduction to Java and Enterprise Java using Eclipse IDE Duration: 5 days

DOT NET Syllabus (6 Months)

Visual C# 2008 How to Program, 3/E Outline

[CHAPTER] 1 INTRODUCTION 1

Java for Programmers Course (equivalent to SL 275) 36 Contact Hours

Language Features. 1. The primitive types int, double, and boolean are part of the AP

Applied object oriented programming. 4 th lecture

5/23/2015. Core Java Syllabus. VikRam ShaRma

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

Programming in Scala Second Edition

SYLLABUS JAVA COURSE DETAILS. DURATION: 60 Hours. With Live Hands-on Sessions J P I N F O T E C H

Objective of the Course: (Why the course?) Brief Course outline: (Main headings only) C# Question Bank Chapter1: Philosophy of.net

Java Primer 1: Types, Classes and Operators

Uka Tarsadia University MCA ( 3rd Semester)/M.Sc.(CA) (1st Semester) Course : / Visual Programming Question Bank

WA1278 Introduction to Java Using Eclipse

C# Programming. Unit 1: Introducing C# and the.net FrameworkThis module explains the.net Framework, and using C# and

INTRODUCTION TO.NET. Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.)

B.E /B.TECH DEGREE EXAMINATIONS,

DOT NET SYLLABUS FOR 6 MONTHS

Hierarchical inheritance: Contains one base class and multiple derived classes of the same base class.

Programming in C# (20483)

Framework Fundamentals

Software Development & Education Center. Java Platform, Standard Edition 7 (JSE 7)

Introduction to C++ Introduction. Structure of a C++ Program. Structure of a C++ Program. C++ widely-used general-purpose programming language

C# 6.0 in a nutshell / Joseph Albahari & Ben Albahari. 6th ed. Beijin [etc.], cop Spis treści

Course Description. Learn To: : Intro to JAVA SE7 and Programming using JAVA SE7. Course Outline ::

104. Intermediate Java Programming

This tutorial has been prepared for the beginners to help them understand basics of c# Programming.

Introduction to C++ with content from

C-LANGUAGE CURRICULAM

CompuScholar, Inc. 9th - 12th grades

College Board. AP CS A Labs Magpie, Elevens, and Picture Lab. New York: College Entrance Examination Board, 2013.

Zhifu Pei CSCI5448 Spring 2011 Prof. Kenneth M. Anderson

1 Shyam sir JAVA Notes

Course materials Reges, Stuart, and Stepp, Martin. Building Java Programs: A Back to Basics Approach. 2d ed. (Boston: Addison-Wesley, 2011).


Murach s Beginning Java with Eclipse

CHAPTER 7 OBJECTS AND CLASSES

Index. object lifetimes, and ownership, use after change by an alias errors, use after drop errors, BTreeMap, 309

EVALUATION COPY. Unauthorized reproduction or distribution is prohibitied C# ESSENTIALS

1 OBJECT-ORIENTED PROGRAMMING 1

Welcome to Teach Yourself Acknowledgments Fundamental C++ Programming p. 2 An Introduction to C++ p. 4 A Brief History of C++ p.

Windows Presentation Foundation Programming Using C#

Core Java - SCJP. Q2Technologies, Rajajinagar. Course content

Java Programming. Price $ (inc GST)

Contents. iii Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1998, Revision B

C# Fundamentals. Hans-Wolfgang Loidl School of Mathematical and Computer Sciences, Heriot-Watt University, Edinburgh

Chapters and Appendix F are PDF documents posted online at the book s Companion Website (located at

Introduction to Programming Microsoft.NET Applications with Visual Studio 2008 (C#)

ISO/IEC INTERNATIONAL STANDARD. Information technology Programming languages C# Technologies de l'information Langages de programmation C#

Transcription:

Object-Oriented Programming in C# (VS 2012) This thorough and comprehensive course is a practical introduction to programming in C#, utilizing the services provided by.net. This course emphasizes the C# language. It is current to Visual Studio 2012 and.net 4.5. Important newer features such as dynamic data type, named and optional arguments, the use of variance in generic interfaces, and asynchronous programming keywords are covered in a final chapter. A supplement covers the fundamentals of Language Integrated Query (LINQ). An important thrust of the course is to teach C# programming from an object-oriented perspective. It is often difficult for programmers trained originally in a procedural language to start thinking in objects. This course introduces object-oriented concepts early, and C# is developed in a way that leverages its object orientation. A case study is used to illustrate creating a complete system using C# and.net. Besides supporting traditional object-oriented features, such as classes, inheritance, and polymorphism, C# introduces several additional features, such as properties, indexers, delegates, events, and interfaces that make C# a compelling language for developing object-oriented and component-based systems. This course provides thorough coverage of all these features. The course explores several important interactions between C# and the.net Framework, and it includes an introduction to major classes for collections, delegates, and events. It includes a succinct introduction to creating GUI programs using Windows Forms. The course concludes with a chapter covering the new features in C# 4.0 and C# 5.0. Audience: Programmers who need to design and develop C# for the.net framework. Prerequisites: The student should have programming experience in a high-level language. Number of Days: 5 days 1..NET: What You Need to Know Getting Started.NET: What is Really Happening.NET Programming in a Nutshell Viewing the Assembly Viewing Intermediate Language Understanding.NET Visual Studio 2012 Creating a Console Application Adding a C# file Using the Visual Studio Text Editor IntelliSense Build and Run the Project Pausing the Output Visual C# and GUI Programs.NET Documentation 2. First C# Programs Hello, World Compiling, Running (Command Line) Program Structure Namespaces Exercise Answer Variables Expressions Assignment Calculations Using C# More About Output in C# Input in C# More About Classes InputWrapper Class Echo Program Using InputWrapper Compiling Multiple Files Multiple Files in Visual Studio The.NET Framework Lab 2 3. Data Types in C# Strong Typing Typing in C# ITCourseware, LLC 1

Typing in C++ Typing in Visual Basic 6 C# Types Integer Types Integer Type Range Integer Literals Floating Point Types Floating Point Literals IEEE Standard for Floating Point Decimal Type Decimal Literals Character Type Character Literals string Escape Characters Boolean Type Implicit Conversions Explicit Conversions Nullable Types Lab 3 4. Operators and Expressions Operator Cardinality Arithmetic Operators Multiplication Division Additive Operators Increment and Decrement Relational Operators Conditional Logical Operators Short-Circuit Evaluation Ternary Conditional Operators Bitwise Operators Bitwise Logical Operators Bitwise Shift Operators Assignment Operators Expressions Precedence Associativity Checking Lab 4 5. Control Structures If Test Blocks Loops while Loop do/while Loops for Loops foreach Loop break continue goto Structure Programming Multiple Methods switch switch in C# and C/C++ Lab 5 6. Object-Oriented Programming Objects Objects in the Real World Object Models Reusable Software Components Objects in Software State and Behavior Abstraction Encapsulation Classes Inheritance Concepts Relationships among Classes Polymorphism Object-Oriented Analysis and Design Use Cases CRC Cards and UML 7. Classes Classes as Structure Data Classes and Objects References Instantiating and Using an Object Assigning Object References Garbage Collection Methods Public and Private Abstraction Encapsulation Initialization Initialization with Constructors Default Constructor this Static Fields and Methods Static Methods Static Constructor Constant and Readonly Fields Lab 7 8. More about Types Overview of Types in C# Structures ITCourseware, LLC 2

Uninitialized Variables Copying a Structure Hotel.cs HotelCopy.cs Classes and Structs Enumeration Types Reference Types Class Types object string Default Values Boxing and Unboxing Implicitly Types Variables Lab 8 9. Methods, Properties, and Operators Static and Instance Methods Method Parameters No Freestanding Functions in C# Classes with All Static Methods Parameter Passing Parameter Terminology Value Parameters Reference Parameters Output Parameters Structure Parameters Class parameters Method Overloading Modifiers as Part of the Signature Variable Length Parameter Lists Properties Auto-Implemented Properties Lab 9B Operator Overloading Operator Overloading in the Class Library 10. Characters and Strings Characters Character Codes ASCII and Unicode Escape Sequences Strings String Class String Literals and Initialization Concatenation Index Relational Operators String Equality String Comparisons String Input String Methods and Properties StringBuilder Class StringBuilder Equality Command Line Arguments Command Line Arguments in the IDE Command Loops Splitting a String Lab 10 11. and Indexers One Dimensional System.Array Random Number Generation Next Methods Jagged Rectangular as Collections Account Class Bank Class TestBank Class Atm Class Running the Case Study Indexers Using the Indexer Lab 11 12. Inheritance Inheritance Fundamentals Inheritance in C# Single Inheritance Root Class Object Access Control Public Class Accessibility Internal Class Accessibility Member Accessibility Member Accessibility Qualifiers Method Hiding Method Hiding and Overriding Initialization Initialization Fundamentals Default Constructor Overloaded Constructors Invoking Base Class Constructors Bank Case Study Analysis Account CheckingAccount SavingsAccount ITCourseware, LLC 3

TestAccount Running the Case Study Lab 12 13. Virtual Methods and Polymorphism Introduction to Polymorphism Abstract and Sealed Classes Virtual Methods and Dynamic Binding Type Conversions in Inheritance Converting Down the Hierarchy Converting Up the Hierarchy Virtual Methods Virtual Method Cost Method overriding The Fragile Base Class Problem override Keyword Polymorphism Polymorphism Using Type Tags Polymorphism Using Virtual Abstract Classes Sealed Classes Heterogeneous Collections Case Study Classes Run the Case Study Account CheckingAccount, SavingsAccount Bank and Atm TestBank Lab 13 14. Formatting and Conversion Introduction to Formatting ToString ToString in Your Own Class Using Placeholders Format Strings Controlling Width Format String Currency String.Format PadLeft and PadRight Type Conversions Conversion of Built-In Types Conversion of User-Defined Types Lab 14 15. Exceptions Introduction to Exceptions Exception Fundamentals.NET Exception Handling Exception Flow of Control Context and Stack Unwinding System.Exception User-Defined Exception Classes Structure Exception Handling Finally Block Inner Exceptions Checked Integer Arithmetic Lab 15 16. Interfaces Interfaces in C# Interface Inheritance Programming with Interfaces Implementing Interfaces Using an Interface Dynamic Use of Interfaces is Operator as Operator Common Interfaces in Case Study IAccount Apparent Redundancy IStatement IStatement Methods IChecking ISavings The Implementation SavingsAccount The Client Resolving Ambiguity Access Modifier Explicit Interfaces Test Program 17..NET Interfaces and Collections Overview Collections Count and Capacity foreach Loop Array Notation Adding to the List Remove Method RemoveAt Method Collection Interfaces IEnumerable and IEnumerator ICollection IList A Collection of User-Defined Objects Duplicate Objects A Correction to AccountList (Step 1) Copy Semantics and ICloneable Copy Semantics in C# ITCourseware, LLC 4

Shallow Copy and Deep Copy Reference Copy Memberwise Clone Using ICloneable Comparing Objects Sorting an Array Anatomy of Array.Sort Using the is Operator The Use of Dynamic Type Checking Implementing IComparable Running the Program Complete Solution Lab 17A Writing Generic Code Using a Class of object Generic Types Generic Syntax in C# Generic Client Code System.Collections.Generic Lab 17B Object Initializers Collection Initializers Anonymous Types 18. Delegates and Events Overview of Delegates and Events Callbacks and Delegates Usage of Delegates Declaring a Delegate Defining a Method Creating a Delegate Object Calling a Delegate A Random Array Anonymous Methods Combining Delegate Objects Account.cs DelegateAcount.cs Lambda Expressions Named Method Events Events in C# and.net Client Side Event Code Lab 18 19. Introduction to Windows Forms Creating a Windows Forms App Partial Classes Windows Forms Event Handling Add Events for a Control Events Documentation Closing a Form ListBox Control Lab 19 20. New Features in C# 4.0 and C# 5.0 dynamic Type dynamic versus object Behavior of object Behavior of dynamic Names Arguments Optional Arguments Book Class Using Optional Arguments Variance in Generic Interfaces Variance with IComparer<T> Interfaces with Variance Support Asynchronous Programs in C# 5.0 Task and Task<TResult> Aysnc Methods Synchronous Call Async Call Threading 21. Appendix A Learning Resources ITCourseware, LLC 5