Console application is an application based on the command line. It consists of console window to see the output. The output looks like the command prompt.
There will be no graphical user interface.
When you select the console application in a new project, your window looks like the image as shown:
So all the required libraries are imported automatically:
using System;
using System.Collections.Generic;
using System.Text;
These are called namespaces , which are required for this console application to run.
namespace ConsoleApplication10
This is the name of your application.
You can give whatever name you want but it should be changed in the previous window. You can give the name there as well as you can change the location where your project is being saved using the browser button.
class Program
{
static void
{
}
}
This is the class which is created automatically. The class name is program and the method main is inside the class.
For time being, you practice writing the code inside the main method.
In later sessions I will teach you to create different classes and required methods.
No comments:
Post a Comment