Pregunta de entrevista de Capital One

What are Objective-C class extensions?

Respuesta de la entrevista

Anónimo

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.