Abstract class example in objective-c