Just wanted to share one useful tip on how to express the abstract class in Objective-C.
Basically in the "abstract" base class the "abstract" methods should be implemented like this, for example:
- (int) myAbstractMethod {
[self doesNotRecognizeSelector:_cmd];
return 0;
}
Then the method should be implemented as needed in the concrete child class.
No comments:
Post a Comment