ios开发设计电影院

People.h

#import <Foundation/Foundation.h>
#import "Ticket.h"
@interface People : NSObject
{
    /**用来存储顾客姓名实例变量*/
    NSString * _personName;
    
    /**用来存储顾客身份证信息实例变量*/
    NSString * _personID;
    
    /**用来存储顾客年龄成员变量*/
    int _age;
    
    /**用来存储票的实例变量*/
    Ticket * _ticket;
    
}

//set get 方法
-(void)setPersonName:(NSString *)personName;
-(NSString *)personName;

-(void)setId:(NSString *)personID;
-(NSString *)personID;

-(void)setAge:(int)age;
-(int)age;

-(void)setTicket:(Ticket *)ticket;
-(Ticket *)ticket;


@end


你可能感兴趣的:(函数,设计,ios开发,set方法,Foundation框架)