Kotlin Programming Language Comments





Kotlin Programming Language Free Online Video Tutorial



Support Us:

PayPal: https://www.paypal.me/vlemonn

Patreon: https://www.patreon.com/vlemonn



Comments.

Comments in Kotlin Programming Language is same as available in most of the programming languages. In Kotlin two types of comments are available.



Line Comment

Line Comment or Single line comment is normally used for adding brief pieces of information in your code. Single line comment starts with two forward slashes (//). Following are some examples of single line or line comment



//Hello This Line is going to ignore by compiler

//In case of line comment, you can’t break comments in multiple lines

//If we want to combine all above comments we need to use the second type

// of comment available in Kotlin.



Block Comment

Block comment is another way to add comments to your code. If you want to add detailed information to your code, you can use block comment. For starting a block comment you need to use /* the next of stuff after forwarding slash and star is a comment. If you want to close the block comment you need to add */. */ is closed any opened comment. Following is the example of a block comment.



/*

Hello this is a  multiline comment

You can split it into multiple

lines

*/





Useful URL:

Our Website: https://vlemonn.com

Facebook: https://www.facebook.com/vLemonn

Twitter: https://www.facebook.com/vLemonn

Google Plus: https://plus.google.com/112993831877465971811

Whats App: 8818882120

Comments

Popular posts from this blog

Android Download File from WebView using Kotlin

Adobe XD Symbols : Status and Navigation Bar

#2 How to Intall and Secure phpMyAdmin on NGINX Ubuntu Google Cloud Comp...