After some research, I can’t find anything on super classes, so I decided to ask here.
Example
@interface superClass : CCSprite
@end
@interface subClass : superClass
@end
How do the two above examples relate to each other? Also, I was shown that you could add a method the the superClass, and then use it in the subClass (how?)?
CCSpriteis the super class ofsuperClasssuperClassis the super class ofsubClassthere is two ways of using method in super class, for example
basically you can just call the method implemented in super class on instance of sub class
and you can override the method in sub class to do something different and/or using
[super methodName]to call the method implementation in super class