Appropiate way to deal with "final" parameters in Objective-C

I need to “translate” a Java class into Objective-C, and such class has a private final member and an initialization method which receives a final parameter:

public class MyClass implements ParentClass {
   private final OtherClass mOther;

   public MyClass(final OtherClass other) {
       this.mOther = other;

What the best way to code an equivalent to this in Objective-C would be?

Thanks in advance

Source: ios

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.