Friday, May 9, 2008

Single Line Comments

You use the double slash (//) to comment a single line or part of a line. Here are some examples of single line comments:

//This is a full line comments. No other logic is allowed on this line.

1 = a + p; // All living things (1) consist of animals (a) and plants(p)

As you can see, // was used to add a line of comments.

No comments: