How to use comments in DART

In this article, i will describe use of comments in DART language
  • 1895

Comments in Dart

Comments is used for better understanding of code for user. Dart contains following type of comment.

  • Single line comments

    Single line comments is start  and end with (//) notation .

Example of single line comment

// Single line comment //
  • Multi line comments

              Multi line comments is start with  (/*) notation and end with (*/) notation.

Example of multi line comment

/* multi line comment 1................................
    multi line comment 2................................
    multi line comment 3................................
    multi line comment 4................................
*/
 
  • Documentation comments

             Documentation comment is syntax like.

Example of documentation comment

/**Documentation comments

Documentation comments
   *
Documentation comments
*/
 


Ask Your Question 
 
Got a programming related question? You may want to post your question here
 
© 2019 DotNetHeaven. All rights reserved.