#import <Foundation/Foundation.h>
@interface UserInfo :NSObject
+(void)add:(NSInteger)inta:(NSInteger)intb;
-(void)deleteInfo:(float)floatA:(float)floatB;
@end
#import "UserInfo.h"
@implementation UserInfo
- (void)deleteInfo:(float)floatA:(float)floatB{
NSLog(@"jieguo%f",floatA-floatB);
}
+ (void)add:(NSInteger)inta:(NSInteger)intb{
NSLog(@"jieguo%d",inta+intb);
}
@end
[UserInfoadd:10:20];
id info=[UserInfoalloc];
[infodeleteInfo:40:10];