So i wrote this piece of code:
#import <Foundation/Foundation.h>
#import “BNRPerson.h”
int main(int argc, const char * argv[]) {
@autoreleasepool {
BNRPerson *mikey=[[BNRPerson alloc] init];
NSLog(@"%p", mikey);
}
return 0;
}
In BNRPerson class we defined no init method. So how does init know what to do?