How does category method resolution conflict work in Objective-C?

Updated May 17, 2026

Short answer

If multiple categories define the same method, the last loaded category wins.

Deep explanation

Objective-C does not support true method overriding in categories. At runtime, method implementations are merged into the class method list, and the last loaded category method replaces previous ones. This leads to undefined behavior and maintenance risks in large projects.

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 →