A

Admin • 802.91K Points
Coach

Q. Which keyword is used to declare a subclass in Swift?

  • (A) inherits
  • (B) extends
  • (C) subclass
  • (D) class Subclass: Superclass
  • Correct Answer - Option(D)
  • Views: 6
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
Swift uses colon `:` to declare inheritance from a superclass.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.