What is the equivalent to protected methods in objective-c? I want to define methods which only the derived classes may call/implement.
A:
Taken from this link -
"You can neither declare a method protected or private. Objective-C's dynamic nature makes it impossible to implement access controls for methods. (You could do it by heavily modifying the compiler or runtime, at a severe speed penalty, but for obvious reasons this is not done.)"
Sachin Shanbhag
2010-09-16 10:54:34