Created
February 9, 2011 08:25
-
-
Save darknoon/818141 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface A : NSObject | |
- (void)doSomething; | |
@end | |
@implementation A | |
- (void)doSomething; | |
{ | |
//Implementation | |
} | |
@end | |
@interface B : A | |
@end | |
@implementation B | |
//May or may not contain an implementation of -doSomething | |
@end | |
/* | |
* The question is: at runtime, how can I determine whether or not B gets its implementation of -doSomething from the superclass A or implements it itself. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment