First page Back Continue Last page Graphics
Addendum: Java Relevance-2
There is finalize method in both.
In Objective C, class attributes declared as properties can be referenced with dot operator like Java.
There is nothing like Objective C - Properties in Java. One may only rely on DAO generators from ORM packages.
There is nothing like Category in Java. Only way to achieve this is by subclassing if this is allowed by main class.
respondsToSelector is similar like instanceof operator in Java. respondsToSelector does verification if method can be called on object. Instanceof in Java verifies if instance comes in the class hierarchy.
Formal Protocols in Objective 'C' are like java interfaces. Or actually Protocols were inspiration behind designing interfaces in Java.