将前文中的类分拆,声明@interface @end放入.h文件,实现@implementation @end放入.m文件。继承类可用#import插入父类头文件,或者使用@class 类名。这样可以很方便的管理我们的源代码。