Zebra0.com

csharp codeComments

Comments

Comments are notes a programmer makes about the code

A good programming habit is to add comments.

There are two ways to add a comment.:
A single line comment begins with //
The compiler will ignore everything after the //
Examples:
// Programmer: Janet Joy
// The Hello World program with code.

this.BackColor = Color.SlateBlue; //a deep gray

A multiline comment starts with /* and ends with */

Example:

  /*  Programmer: Janet Joy
Hello World with code
*/
Tips:

Commenting Conventions:

NEXT: Code created