What happens when a category overrides an existing method?

Updated May 17, 2026

Short answer

The last loaded category method replaces previous implementations in method list.

Deep explanation

Categories do not merge logically; they append methods to runtime method list. If two categories define same selector, the one loaded last wins, making behavior dependent on binary load order.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Objective-C interview questions

View all →