csharp console

3
Monday, 27 May 2013 awesome Console C sharp awesome c sharp by santosh C sharp is a object oriented programming language as any other object oriented language. But as i mentioned earlier c sharp is easier, simple and available with much better features. u must learn c sharp, so here today we are going to start. it's like singing or listing your favorite song with blessing of lord Mahadev, dear friends shall we start today.... here we go. C sharp is the part of .net framework which is a development engine, environment belongs to Microsoft. u can built any type of application for any type of platform android, windows etc that's why there was a need of modular structure for c sharp to make it awesome, and finally they succeeded in it and what a technology language they created whole modern programmer world is following so as we. That's why c sharp consist of these points OBJECT, CLASSES, ENCAPSULATION, ABSTRACTION, POLYMORPHISM, INHERITANCE Now what is object? Object is a real life entity which has features similar to living being like identity, state, behavior not going in much detail from here think like a computer expert or professional programmer and answer a simple question have u seen CAR ? u will be thinking that what type of question is that off course your answer will be yes, u have seen car so your this answer will be answer of a common man which is different from programmers point of view whereas programmer will answer no they haven't seen let's understand that why they are saying no because there is nothing like car in this real world they all belong to a category of automobile, car is a imaginary word given to just like a vehicle with an engine and 4 tiers like hondacity is also a car, tata safari is also car or tata nano is also a car so if u are talking about particular hondacivic with xyz no is the object and category car is the class so from here i can define that, a class is collection of objects which have similar functions, and has logical existence where as object is living free entity which is the basic unit of the class and object have attributes which possess certain function. see below picture to understand this thing more clearly. 

Upload: santosh

Post on 14-Apr-2018

276 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Csharp Console

7/30/2019 Csharp Console

http://slidepdf.com/reader/full/csharp-console 1/3

Monday, 27 May 2013

awesome Console C sharpawesome c sharp

by santosh

C sharp is a object oriented programming language as any other object oriented language. But as imentioned earlier c sharp is easier, simple and available with much better features. u must learn c sharp,so here today we are going to start. it's like singing or listing your favorite song with blessing of lordMahadev, dear friends shall we start today.... here we go.

C sharp is the part of .net framework which is a development engine, environment belongs to Microsoft.u can built any type of application for any type of platform android, windows etc that's why there was aneed of modular structure for c sharp to make it awesome, and finally they succeeded in it and what atechnology language they created whole modern programmer world is following so as we. That's why csharp consist of these points

OBJECT, CLASSES, ENCAPSULATION, ABSTRACTION, POLYMORPHISM, INHERITANCE

Now what is object? Object is a real life entity which has features similar to living being like identity, state,behavior not going in much detail from here think like a computer expert or professional programmer andanswer a simple question have u seen CAR ? u will be thinking that what type of question is that off course your answer will be yes, u have seen car so your this answer will be answer of a common manwhich is different from programmers point of view whereas programmer will answer no they haven't seenlet's understand that why they are saying no because there is nothing like car in this real world they allbelong to a category of automobile, car is a imaginary word given to just like a vehicle with an engine and4 tiers like hondacity is also a car, tata safari is also car or tata nano is also a car so if u are talking aboutparticular hondacivic with xyz no is the object and category car is the class so from here i can define that,a class is collection of objects which have similar functions, and has logical existence where as object isliving free entity which is the basic unit of the class and object have attributes which possess certainfunction. see below picture to understand this thing more clearly.

Page 2: Csharp Console

7/30/2019 Csharp Console

http://slidepdf.com/reader/full/csharp-console 2/3

now u know that what is class and what is object half of the battle is won.

In our day to day simple language we use some special words to understand the term. Similarly inprogramming technology we have keywords in programming language for special purposes. there aremore that 75 keywords in c sharp. But more important think for programmer is data (the raw fact ) which isto be taken care that why data need to be classified for more secured manner here comes the term DATATYPE

different data types in c sharp in given belowint

char floatstringdoubledecimal and so on.....

and if u have data then u must be having some place where u can put that data. for example we use our brain cells to remember the name of our family, friends, facebook, learning same as computer languagesalso use these memory cells commonly known as variable where value can be changed any time. nowafter getting these topics try to make first c sharp awesome code.... because doing it better than readingit. happy learning

c sharp is case sensitive meaning small will be written in small and capital in capital, which one will capitaland which one is small depends on protocols ( rules and regulation of c sharp) don't panic if u getproblem in understanding c sharp first code which is here.

open notepad start typing _____________________________________________________________________ class car

Page 3: Csharp Console

7/30/2019 Csharp Console

http://slidepdf.com/reader/full/csharp-console 3/3

{public static void Main(){

System.Console.WriteLine("hello awesome c sharp i m first simple code");}}

______________________________________________________________________

class is keyword which already defined earlier starting with small letter here i have taken name car u cantake any name as class name. we make boundaries of our home, car, stuffs same way we makeboundaries in programming by these braces "{ }" public is keyword which provide accessibility as publicaccess specifier static is keyword , void return nothing and last but not least main function ("Main()") Thismain function is the entry point or entrance point of program and this system is namespace andnamespace is collection of classes which Console is one, Console provides the functionality of readingand writing size buffer and more u will know later and WriteLine() is the function which provides power of printing text in double quotes like "hello awesome c sharp i m first simple code" and this is termination; as we use full stop in english language close those 2 braces and then compiles

now save this code with name ............. ..... one.cs .............. ...... in any drive i m using d drive tosave this code file and open visual studio developer command prompt of your system and type

step one...d:enter step twocsc one.csstep threetype one and enter

and see the code execution

Developer command prompt text

hello awesome c sharp i m first simple code.. and happy learning

for more information http://awesomecsharp.blogspot.in

____________________________________________________________________________ all right reserved it 2013 awesome c sharp and vardana solutions

____________________________________________________________________________