Загрузка...

How to write a C# programme in Visual Studio 2015 | Part 3

How to write a C# programme in Visual Studio 2015:
class: is a keyword which is used to define class.

Program: is the class name. A class is a blueprint or template from which objects are created. It can have data members and methods. Here, it has only Main method.

static: is a keyword which means object is not required to access static members. So, it saves memory.

void: is the return type of the method. It does't return any value. In such case, return statement is not required.

Main: is the method name. It is the entry point for any C# program. Whenever we run the C# program, Main() method is invoked first before any other method. It represents start-up of the program.

string[] args: is used for command line arguments in C#. While running the C# program, we can pass values. These values are known as arguments which we can use in the program.

The Console.WriteLine() is a static method, which is used to display a text on the console and terminate the line.

Видео How to write a C# programme in Visual Studio 2015 | Part 3 канала Syed Ali
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять