DevPrep

All topics › Objective-C

Objective-C

Middle PRO

What it is

Objective-C is an object-oriented superset of C (Brad Cox, 1980s; NeXT → Apple) that added Smalltalk's object model to C: classes, messages, a dynamic runtime. Any C code is valid Obj-C code, so the language mixes naturally with C/C++ (Objective-C++) and low-level APIs (Core Foundation, POSIX). Until 2014 it was the only language of iOS/macOS; today UIKit, Foundation, Core Data and millions of lines of legacy are written in it.

The rest of this answer, with code and interview follow-ups, is in the DevPrep app.

Read the full answer in DevPrep

Practice this before your interview

DevPrep turns these answers into one-minute challenges: what does this code print, find the bug, mock interviews. One challenge a day.

Get DevPrep on the App Store