This is a companion discussion topic for the original entry at https://www.raywenderlich.com/8458722-testing-in-ios/lessons/2
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/8458722-testing-in-ios/lessons/2
At 08:32, you show access scope for private as file-scope but isnβt private used for class-scope and file private for file-scope?
When used at file-level, fileprivate
and private
have the same meaning. fileprivate
is only necessary when you want to share members that would otherwise be private
, between different types in the same file. So itβs useful enough to be included in the language, but rarely needed.