learn how to code

About This Course: This course provides a focused Two days introduction to C# object-oriented features, including the development of a set of related classes that model a business application’s core functionality. It will cover the concepts and building blocks of the C# programming language, such as how .NET is different from traditional programming, defining variables, control structures, operators, classes and methods. It will provide delegates with a skill base from which they can go on to develop C# applications on either the Windows Forms

Duration

2 days

Cost

2,000 BDT.

Prerequisites

There are no prerequisites for this course.

Detailed course contents

  • Introduction to .NET
  • What is .NET?
  • Common Language Runtime
  • Common Type System (CTS)

Introduction to C#

  • What is C# ?
  • What is C# used for?
  • Features of C#
  • What does C# look like?

Getting started

  • Creating a project
  • The Main method
  • C# basics
  • Displaying to the console screen
  • Adding comments
  • Compiling and running the program from the command line
  • Compiling and running the program using the Visual Studio Express IDE

Variables

  • Variables in C#
  • Declaring variables
  • Variable name rules
  • C# keywords
  • Assigning a value to a variable
  • Strings
  • Escape Sequences
  • Verbatim string
  • Character data types
  • Numeric data types
  • Signed and Unsigned
  • Byte
  • Signed Byte
  • Short Integers
  • Unsigned Short Integers
  • Signed integers
  • Unsigned Integers
  • Long Integers
  • Unsigned Long Integers
  • Real Numbers: float
  • Double-Precision Numbers
  • Decimal
  • The Boolean Data Type
  • The DateTime Data Type
  • Assigning a DateTime value
  • Declaring a variable
  • Uninitialised variables
  • Constants
  • C# / .NET Data Types
  • C# / .NET Data Type equivalents

Data type conversion, properties and methods

  • Data type properties
  • Data type methods
  • String methods: PadLeft and PadRight
  • String method: Substring
  • More String methods
  • Numeric formatting with ToString()
  • Common Format Specifiers
  • DateTime properties
  • Static DateTime properties
  • DateTime methods
  • Converting DateTime to a String
  • DateTime format masks
  • Converting numeric data to string
  • Implicit and explicit conversion
  • Using Parse to convert data types
  • Using TryParse to convert data types
  • System.Convert

Operators

C# operators

  • The + operator
  • The -, * and / operators
  • The ++ increment assignment operator
  • The — inecrement assignment operator
  • The += addition assignment operator
  • The -=, *= and /= operators
  • Logical operators ==
  • Logical operators !=
  • Logical operators < and >
  • Logical operators <= and >=
  • Logical ‘and’ Conjunction: &
  • Conditional ‘and’ Conjunction: &&
  • The Binary ‘or’ operator: |
  • The Conditional ‘or’ operator: ||
  • The exclusive ‘or’ operator: ^

Conditional logic

  • Conditional control: if
  • Conditional control: else
  • if .. else if
  • The Ternary Operator: ? :
  • Case Switches
  • Branching statements
  • goto
  • Loops
  • Loops
  • The while loop
  • do…while
  • The for loop
  • Breaking out of a loop
  • Continuing a loop

Methods

  • Methods of a class
  • Types of method
  • Method parameters
  • Declaring a method
  • Examples: Method declarations
  • Specifying method parameters
  • Returning a value from a method
  • A complete method
  • Overloading a method

Introduction to Classes

  • Object oriented programming
  • Classes
  • Objects
  • Creating a class
  • Creating a class in its own file
  • Creating an object
  • Assigning a value to an object
  • Accessing class members
  • Objects as parameters and return types
  • Reference types
  • Class Fields
  • Access modifiers
  • The public access modifier
  • The private access modifier

Properties

  • Encapsulation
  • Traditional encapsulation
  • Properties
  • Coding a Property
  • Implementing a Property
  • A property with accessor logic
  • Accessing a property
  • Read only Properties
  • Write only Properties
  • New in C# 3.0: Automatic Properties
  • Read only / Write only Automatic Properties
  • Initializing Automatic Properties

Constructors

  • What are constructors?
  • Constructors with arguments
  • Calling a constructor
  • The default constructor
  • Constructor chaining

Inheritance

  • Introduction to Inheritance
  • Examples of inheritance use
  • Deriving one class from another
  • Adding to a Derived Class
  • Overriding Members of the Base Class
  • The Object Class (System.Object)
  • Calling Members of the Base Class
  • Referencing the constructor of an inherited class
  • Multi-Level Hierarchies
  • The protected access modifier
  • Constructors and Inheritance
  • Explicitly calling Base Class Constructors
  • Protected Constructors

Static members and classes

  • Static Members of a class
  • Examples of static behaviour
  • Declaring Static Members
  • Referencing Static Members
  • Static Classes
  • Rules of static classes

Sealed and Abstract classes

  • Preventing inheritance from a class
  • Preventing instantiation from a class
  • Creating an abstract class

Polymorphism and Name Hiding

  • Substituting a derived class for its parent
  • Polymorphism
  • Name hiding

Arrays

  • Array Types
  • Declaring an Array
  • Initialising an array
  • Retrieving the length of an array
  • Using foreach to loop through an array

Error handling

  • Introduction to Exception Handling
  • try .. catch
  • finally
  • The Exception Class
  • Catching the Exception instance
  • The Exception Message
  • Throwing an Exception
  • Passing a message to the Exception class

Enumerators

  • What are Enumerators?
  • When to use Enumerators?
  • Declaring enumerators
  • Using the enumerator

Namespaces

  • What is a namespace?
  • Accessing Members of a Namespace
  • Namespace Nesting
  • using a Namespace
  • The System Namespace

FAQs

  • What are the course times?

Please arrive for a 8.30am start on the first day of your course. Subsequent days will usually start at 9am but check with your instructor. The course will end at 5pm each day.

  • Do I need to bring anything? 

Laptop, Pencil & Art Paper.

  • Are refreshments provided?

Mid-morning and mid-afternoon refreshments tea will be provided along with packet Lunch.

  • any Certificate ?

We will provide course completion  certificate.

  • Date ?

15th  & 16th February 2019

23rd & 24th February 2019

28th February & 1st March 2019

8th & 9th March 2019

  • Location ?

Office location

  • Contact  

01907885885