Here we first give a general analysis of needs, in the course of software development
will improve some functions as the needs change.
/* Exercise 8: In our real life we have to go to the cinema to see a movie, will experience a painful process, that is to queue to buy tickets, if we can put this process on the mobile phone with software to complete, it will greatly reduce the pain we watch the movie queue process, so we will be this process software. Requirements Analysis: 1. To have a video message 2. Select the movie I want to see 3. Select a seat 4. Print ticket information Find object design class name: Cinema Properties: Name, fare, row number, seat number, Hall method: Select Movie , select a room, select a seat, print a ticket */#import <Foundation/Foundation.h> #import "Cinema.h" #import "People.h" #import "Film.h" # Import "Ticket.h" int main (int argc, const char * argv[]) { cinema * cinema = [[Cinema alloc]init]; NSLog (@ "%@", cinema); People * people = [[People alloc]init]; NSLog (@ "%@", people); Film * Film = [[Film alloc]init]; NSLog (@ "%@", film); Ticket * Ticket = [[Ticket alloc]init]; NSLog (@ "%@", ticket); return 0;}
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
iOS Development Design Cinema