Documentation comments | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Documentation comments

When would you us a documentation comment and not just a regular comment like a multiline comment? Aren' they pretty much the same?

14th Nov 2017, 9:38 PM
Caleb J. Rasmussen
Caleb J. Rasmussen - avatar
2 Answers
+ 3
Documentation comments for documenting classes and methods. Multi-line comments for other purposes, like commenting something inside a method
14th Nov 2017, 9:56 PM
Eligijus Silkartas
Eligijus Silkartas - avatar
+ 1
They're pretty almost the same thing.
14th Nov 2017, 10:37 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar