Question d’entretien chez Capital One

What are Objective-C class extensions?

Réponse à la question d'entretien

Utilisateur anonyme

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.