Kotlin TutorialLesson 6Free preview
Kotlin Comments
This lesson is part of Kotlin · All levels
Summary
This lesson discusses comment writing in Kotlin code for internal documentation purposes. Commenting helps other programmers understand the intent of the algorithm without affecting the compilation process. Kotlin supports single-line comments, multi-line comments, as well as nested comments.
Key points
- One line commentary begins with the double '//'
- Comments are lined up between '/*' and '*/'
- Kotlin supports nested comments
- The Kotlin Document uses the format '/**... */' for the API documentation
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.