3.Programming Concepts

In this tutorial, we will familiarize some of the programming concepts like Arrays, File handling, Exception handling and OOPs Concepts like Inheritance, Polymorphism etc... using Console Application in VC# .NET. These tutorials will enable you to write small utility programs.  A brief description about some of the Namespaces used here like System.Collections, System.IO, System.Text is given below. Please refer MSDN for more details about these Namespaces.

 

System.Collections- The System.Collections namespace contains interfaces and classes that define various collections of objects, such as lists, queues, bit arrays, hashtables and dictionaries.

System.IO- The System.IO namespace contains types that allow reading and writing to files and data streams and types that provide basic file and directory support.

System.Text- The System.Text namespace contains classes representing ASCII, Unicode, UTF-7, and UTF-8 character encodings; abstract base classes for converting blocks of characters to and from blocks of bytes; and a helper class that manipulates and formats String objects without creating intermediate instances of String.

 

By the end of this session you will be able to write any type of console application which suits to everyday need. It is assumed that the reader is familiar with some of  Object Oriented concepts. Click on the appropriate  link below to see the Video and the source. 

 

Array, Files And Exception Handling in C#

 

 

 

Inheritance in C#

 

 

 

Polymorphism in C#

 

 

 

Encapsulation in C#

 



Download the source code for Array, Files And Exception Handling Example

Download the source code for Inheritance Example

Download the source code for Polymorphism Example

Download the source code for Encapsulation Example