Comments

Comments are used to make the source code easier for humans to understand the function of the program. Multi-line comments are used for large text descriptions of code. Comments are ignored by the compiler. Multi-line comments start with /* and end with */.

In the HelloWorld example, there are comments for the set and get methods:

  • Method: The setNewGreeting (string _newGreeting) {} function
  • @param: This is used to indicate what parameters are being passed to a method, and what value they're expected to have

 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset