很简单啊。。。 这是基础吧?
懒得开mac 记事本敲了一个。
//员工类
#import <Foundation/Foundation.h>
@interface YuanGong : NSObject
@property (nonatomic, copy) NSString *name;
@property (nonatomic, assign) int id;
@property (nonatomic, assign) double gongzi;
@end
@implementation YuanGong
@end
//经理类
@interface JingLi : YuanGong
@property (nonatomic, assign) double jiangjin;
@end
@implementation JingLi
@end |