Protocol和其他一些小方法使用 1. 判断该类包含protocol协议
Student *stu = [[Student alloc] init];//访问成员变量得getter和setter方法stu.test = 10;//直接访问成员变量stu->test = 10;