A

Admin • 670.22K Points
Coach

Q. What does `typealias` do in Swift?

  • (A) Creates a new class
  • (B) Defines a type for enums
  • (C) Provides an alternative name for a type
  • (D) Creates a constant
  • Correct Answer - Option(C)
  • Views: 1
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
`typealias` allows creating a new name for an existing type.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.