First Class Material (How to Run Programme In C#)
Know some words Before writting a programme in C sharp (C#).
first step to learn any Language Like English
1. Alphabates
2. Making Words
3. Making Sentence
4. Paragraphs
In Computer Language here is same as like our Real world
1. Keywords
2. Types of words
3. Making Programme
4. Develop Project
At first we know about Keywords
1. Keywords: Keywords are reserved words that has a special meaning.
OR
Keywords are predefined reserved identifiers that have special meanings to the compiler
2. Namespace : Its the collection of classes.
3. Collection: its a set of Items.
4. Class : its a collection of same type of objects.
5. Main() : its here fuction
3. Collection: its a set of Items.
4. Class : its a collection of same type of objects.
5. Main() : its here fuction
6. Object 1. it is a instance of a class.
2. it is the combination of message and data.
3. we create object to access the members of a class.
3. we create object to access the members of a class.
using System;
class First
{
public static void Main()
{
Console.WriteLine("This is your First Programme");
}
}
Output is : This is your First Programme
Like in this programme
"Using" is a keyword and its works for include Namespace in Programme.
"System" is Namespace.
"Class" is keyword.
"First" is Class Name.
"main" is fuction.
" public static void " we will see later for this line.
"Console" its a predefined Class."Using" is a keyword and its works for include Namespace in Programme.
"System" is Namespace.
"Class" is keyword.
"First" is Class Name.
"main" is fuction.
" public static void " we will see later for this line.
"WriteLine" its a Method (Behaviour of object)
No comments:
Post a Comment