A Best Simple Programming Way to Understand program in Dot net
Welcome
1 Best Simple Programming Way to Understand Programmost of us think that programming is very hard and we can not do it but it not hard
we can do it very easily if we understand about programming. In a simple word we can
say that programming is a set of instruction which is set by the programmer. A programmer
write some instruction for computer to do work fast.First of all we should care about who will use our program and what will his require and after that we write instruction.
for write instruction we should think which type of data type is used and is there need any loop, operator etc..
For Example we write a simple program to print hello :-
using System;
namespace Hello
{
class Hello {
static void Main(string[] args)
{
Console.WriteLine("Hello");
Console.Write("Hello");
}
}
}
Meaning of program lines :-
using System :-
It is a way to call the
namespace Hello :-
The namespace keyword is used to define our own namespace. Just think of namespace as a container which consists of classes, methods and other namespaces. To get a detailed overview of namespaces.
class Hello:- A class is used to create a class to Bind all module in a class.
static void Main(string[] args) :- it is a main function which help us to run and execute our program and shows output.
Console.WriteLine():- it is a syntax which help us to print message on console window with next line space
Console.Write():- it is a syntax which help us to print message on console window without next line space
For read our next blog click here
Console.WriteLine():- it is a syntax which help us to print message on console window with next line space
Console.Write():- it is a syntax which help us to print message on console window without next line space
For read our next blog click here


Comments
Post a Comment