02-Syntax

0
639

CSharplogo1 syntax

C#  is a bit the same with Java depending on the syntax that derives from C and C++. C#  program is in need of powerful structure when it comes to its object-oriented nature in terms of classes. Wherein, the statement needs to be exact.

 

A statement is a basic implementation of C# program. This statement can be declared as variable, execute an event by calling a method, create a method and many more, and it ends with semicolon.

 

Examples:

output:

syntaxCSharpoutput

 

A statement between { } braces is the body of the method. These braces serve as the fence of the codes in the method.  This will help you identify what is the process or event you’re going to execute.

 

Output:

syntaxCSharpoutput2

Looking for more source code? Type your keyword here here!

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.