背景 定义一个Student类,使用@property声明一个score属性,编译器会自动帮我们生成_score成员变量和对应的setter&getter方法声明和实现。 @interface Student //@property (nonatomic,assign) int score; { int _score; } -(void)setScore:(int)score; -(int)score; @end @implementation Student - (void)setScore:(int)s…