Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the purpose of the 'self' keyword in Swift?
Answer: 'self' is used to refer to the instance of the current type, and it's often required to distinguish between instance variables and parameters with the same name.
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook