class

1.类的声明

  

@interface Xiao:NSObject    //l类的声明用interface 类名:NSObject ,在oc中所有的类都继承NSObject

-(void)Round;     //这个只声明函数的名,返回之类型,参数

2.类的是实现方法

@implementation Xiao   //类的调用implementation 类名

-(void) Round     //函数的实现

{

    NSLog(@"我爱你,就像老鼠爱小猫咪!!!");

}

 
原文地址:https://www.cnblogs.com/flyingdreaming/p/classDeclaration.html