C# Object oriented because it follows the following things:
- Namespace declaration ;
- A class ;
- Class attributes;
- Main method ;
- Statements & expressions ;
- 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:
- Windows Applications ;
- Web applications ;
- Web services.
- To be Continue..........
- Written by -Munira Mou
Comments
Post a Comment