Spring Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Apple App Development with Swift Certified User Exam App-Development-with-Swift-Certified-User Question # 6 Topic 1 Discussion

Apple App Development with Swift Certified User Exam App-Development-with-Swift-Certified-User Question # 6 Topic 1 Discussion

App-Development-with-Swift-Certified-User Exam Topic 1 Question 6 Discussion:
Question #: 6
Topic #: 1

Why does the initializer for the following struct need the keyword self?

App-Development-with-Swift-Certified-User Question 6


A.

self is used to indicate to the reader that the parameter is being referenced.


B.

self is always needed when you are setting properties in an initializer.


C.

self is needed to distinguish between the property and the parameter with the same name.


D.

self is only needed when the property does not have a default value.


Get Premium App-Development-with-Swift-Certified-User Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.