A

Admin • 828.03K Points
Coach

Q. Which keyword is used in Swift to prevent a method from being overridden?

  • (A) static
  • (B) final
  • (C) private
  • (D) sealed
  • Correct Answer - Option(B)
  • Views: 15
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
The `final` keyword prevents subclasses from overriding a method or property.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.