Hello Fella people,

Here is our first fully explained C# sample program

 

public class Hello

{

public static void Main (string [] args)

{

System.Console.WriteLine(“hello friends”);  

}

}

Explanation:

 The Class  keyword is used to declare a class. keywords are reserved words having special meaning. here we define the class Hello.

class Hello

{

}

Console is a class that belongs to System namespace. Namespace is the logical grouping of classes. WriteLine is a method used for printing.

 

HERE IS our first program in C# 

Happy Coding !!

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s