Swift Developer Question:
Download Job Interview Questions and Answers PDF
Do you know how Multiple Line Comment Can Be Written In Swift?
Answer:
The Nested multiline comments enable you to comment out large blocks of code quickly and easily.
Use an opening (/*: ) and closing ( */) comment and it looks like -
/*:
The above forward slash (/) and an asterisk (*) then a colon (:) is opening comment - (/*:)
…
The below an asterisk (*) and forward slash is closing comment – (*))
*/
Use an opening (/*: ) and closing ( */) comment and it looks like -
/*:
The above forward slash (/) and an asterisk (*) then a colon (:) is opening comment - (/*:)
…
The below an asterisk (*) and forward slash is closing comment – (*))
*/
Download Swift Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Do you know the Adapter And Memento Pattern? | Tell us what Is The Difference Between Swift And Objective-c Language? |