In Java, when you override a method, you are advised (almost forced) to add the @Override annotation. Is there a convention to mark (either in comments, or by some other mechanism) overridden methods in the Objective-C world?
In Java, when you override a method, you are advised (almost forced) to add
Share
No. All methods in Objective-C are sent via Objective-C’s messaging, so all methods can be overridden. That’s part of the language.
There’s no convention for marking this, either. It’s part of the language that it happens, and if you were to comment otherwise it’d just be confusing when you did it later, accidentally or intentionally.