Capital One interview question

What are Objective-C class extensions?

Interview Answer

Anonymous

19 Oct 2014

This is the question that I messed up in my on-site interview due to my unfamiliarity with the official technical term. Objective-C class extensions basically extend the internal implementation of some class. They are also referred to as “anonymous categories”. In my own code, I’ve used them for a couple years to add API’s and properties private to my own classes.