Pergunta de entrevista da empresa Capital One

What are Objective-C class extensions?

Resposta da entrevista

Sigiloso

19 de out. de 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.