//
// main.m
// PermissionDemo 权限访问修饰符
//
// Created by ZhaiKun on 2017/10/9.
// Copyright © 2017年 ZhaiKun. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Permission : NSObject
{
//默认的访问权限,当前类和子类可访问
@protected
int protectedPermission;

//所有类都可以访问
@public
int publicPermission;

//只有当前类可以访问
@private
int privatePermission;

//框架级的访问权限,在当前framework的类中视为@protected,在当前框架以外视为@private
@package
int packagePermisson;
}
@end

int main(int argc, const char * argv[]) {
@autoreleasepool {
// insert code here...
NSLog(@"Hello, World!");
}
return 0;
}