Home > Articles > Mobile Application Development & Programming

  • Print
  • + Share This
This chapter is from the book



  1. What is one of the biggest differences between subclassing and extending a class with a protocol or category?
  2. What are the benefits of using declared properties?

Quiz Answers

  1. You can add instance variables to a subclass. Protocols and categories allow you to only add methods.

  2. You can save yourself some typing, your code will be more readable, you can use dot syntax to use the accessors, and the attributes you can assign to the properties can help you take advantage of runtime features.

  • + Share This
  • 🔖 Save To Your Account