What is C#.. ? Introduction About C#. Fundamentals of Computer Programming with C# with FUN


C# Object oriented because it follows the following things:  

  1.     Namespace declaration ;
  2.   A class ;
  3.       Class attributes;
  4.   Main method ; 
  5.       Statements & expressions ;
  6.    Comments.

Now let’s go to see some basic implementation parts about C# :


Using system;
Namespace lesson {
         Class Fun {
     Static void Main (string [] args) {
     Console.WriteLine(“Funny lesson about C#”) ;  /*Fun*/
    Console.Readkey ();
}
}
}

It’s a simple basic code where every basic content of C# is present. As example, I can say that-
Namespace declaration, class declaration, Main method that is actually main entry point of C# programming language. Without that, Comment (/* */) & Printline that is written by Writeline .
If we run this code into visual studio software then the output will be

                             Funny lesson about C#

Others content are as similar as same with JAVA but again there have some difference too. Now I am talking about these things that are different from JAVA in C#.
Those is Package in JAVA, namespace is that in C#. So, work or process is same but the syntax is different.
The interesting thing of .NET framework is that, it has a great & various types of use. Like as:

  1.   Windows Applications ;
  2.   Web applications ;
  3.   Web services.
  4.  
    To be Continue.......... 
    Written by -Munira Mou

Comments