Cinema.h file
#import <Foundation/Foundation.h> #import "Film.h" enum filmroom{/** is used to store the hall number, which, in turn, represents Hall 1-7 */filmroomwithone = 1, Filmroomwithtwo = 2, Filmroomwiththree = 3, Filmroomwithfour = 4, filmroomwithfive = 5, Filmroomwithsix = 6, Filmroomwithseven = 7//... You can add};typedef enum filmroom filmroom; @interface cinema:nsobject{//Declare the member variable properties of the class: name, fare, number of rows, seat number, Hall/** the name used to store the movie Example variable */nsstring * _NAME; The int _price;//is used to store the movie fare/** used to store the number of seat row instance variable */int _rownumber; /** used to store seat number instance variable */int _seatnumber; /** used to store the hall number instance variable */Filmroom _filmroom; /** is used to store the movie instance variable */Film * _FILM;} -(ID) initwithfilm: (Film *) film;-(void) Setfilm: (Film *) film;-(Film *) film;-(Film *) Informationaboutfilm: (Film *) Film The declaration of the/*set\get method *//** provides a set method for the movie name */-(void) SetName: (NSString *) name;-(NSString *) name;/** provides a set method for movie fares */-(void) Setprice: (int) price;-(int) price;/** provides a set method for the number of cinema bit rows */-(void) Setrownumber: (int) rownumber;-(int) rownumber;/** The set method for providing the hall seat number */-(void) Setseatnumber: (int) seatnumber;-(int) seatnumber;//method: Select a movie, select a hall, select a seat, print a ticket/** the hall select */-(void) Filmwithplayfileroom: (Filmroom) filmroom;/** Select Movie *///-(void) Filmwithselectfilmname: () selectfilmname;+ (NSString *) Getfilmroom: (filmroom) FilmRoom; @end
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
iOS Development Design Cinema