The Basic structure of c sharp programs
A C# program basically consists of the following parts:
Name space
Class
Instance Methods
Instance Members
Main Method
Statements and Expressions
Comments
using System;
name MyTutorials
{
class HelloWorld
{
public static void Main()
{
Console.WriteLine("Hello World..!");
Console.ReadLine();
}
}
}
Output:
Hello World...!
A C# program basically consists of the following parts:
Name space
Class
Instance Methods
Instance Members
Main Method
Statements and Expressions
Comments
using System;
name MyTutorials
{
class HelloWorld
{
public static void Main()
{
Console.WriteLine("Hello World..!");
Console.ReadLine();
}
}
}
Output:
Hello World...!
0 comments:
Post a Comment