SwiftGojek
private vs fileprivate
In one file you have class A { fileprivate func secret() {} } and class B. Can B call A().secret(), and what changes if you switch it to private?
private vs fileprivate
In one file you have class A { fileprivate func secret() {} } and class B. Can B call A().secret(), and what changes if you switch it to private?
SwiftMultiple choiceBasics
In a framework module, what's the difference between declaring open class and public clas…
#access-control
SwiftMultiple choiceExpert
What does this code print? …
#extension
SwiftMultiple choiceBasics
Which of these statements about Swift language rules are correct? Pick all that apply.
#access-control
SwiftShort answerBasics
Extend Array with a myCompactMap that behaves like the standard library's compactMap. How…
#extension