02-Syntax

0
57

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

Facebook Comments

LEAVE A REPLY

Please enter your comment!
Please enter your name here