Comments
Regardless of the syntax of the comments used, they are vital to understanding the function of a class. In Java, C#, and C++, there are two kinds of comments.
The Extra Java and C# Comment Style
In Java and C#, there are actually three types of comments. In Java, the third comment type (/** */) relates to a form of documentation that Java provides. We will not cover this type of comment in this book. C# provides similar syntax to create XML documents.
The first comment is the old C-style comment, which uses /* (slash-asterisk) to open the comment and */ (asterisk-slash) to close the comment. This type of comment can span more than one line, and it's important not to forget to use the pair of open and close comment symbols for each comment. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access