I have class A, B and C with 2 methods in all 3 classes.
class A
- (void)onSuccess {
}
- (void)onFailure {
}
Then one CommonClass is there in which I’ll be doing some task. If class A is presenting CommonClass and after performing all the tasks I have to call either onSuccess() or onFailure() implemented in class A.
Which is the best way to do this, and how? In Java it's done by extend or abstract I guess.