Just like in other programming languages, comments can be used to tell yourself and others how to use methods or classes that you are writing. There are two kinds of comments that you can use.
The first kind of comment deals with a single line of ignored code.
This can be accomplished by using a single line comment delimiter such as this //
Whenever you see a // followed by anything, everything that is after it on that line only is ignored by compilers no matter what it is.
The next kind of comment deals with multiple lines of code for those who want to give a long explanation of why they wrote the code, or how others should use their method. This can be accomplished by using multiple line deliminiters such as /* followed by the commented out stuff followed by a */
/* everything between these things is a comment */
// everything else on this line is a comment
Home Page | Table of Contents | Introduction | Programming | Extras