A

Admin • 828.03K Points
Coach

Q. Which keyword makes a method or property available only to the defining class?

  • (A) internal
  • (B) public
  • (C) private
  • (D) fileprivate
  • Correct Answer - Option(C)
  • Views: 8
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
`private` restricts access to the method/property within the same class or struct.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.