I have two classes, named Parent and Child, as below. Parent is the superclass of Child I can call a method of the super
You could use this:
Parent.m
#import "Parent.h"
@implementation Parent
- (void) methodOfChild {
// this should be override by child classes
NSAssert(NO, @"This is an abstract method and should be overridden");
}
@end
The parent knows about the child and child has a choice on how to implement the function.