今儿先发一个题好了,关于类的
Question 1:
Build a model of a bus company. There should be at least 3 destinations (don't have too many!), several buses (each will be built by a Bus class, and should have a chosen number of seats, and be associated with a pair of destinations (one to leave from and one to arrive at -- these might get updated after each trip), and people (to choose the bus route they want and to sit in the buses). The buses should indicate if they're full, but until then should allow people to join the bus. Build such other structure to your model as makes sense to you without becoming overly sophisticated!!!
建立一个巴士公司模型。至少有三个目的地,一些巴士(每个都由BUS类构造,有可以调整数量的座位,并且要有成对的目的地(从一地出发驶向另外一地--每趟之后都会更新),people可以选他们要做得路线,以及做得哪辆bus)当人满的时候bus要提醒已满,否则可以让people上车。
Question 1:
Build a model of a bus company. There should be at least 3 destinations (don't have too many!), several buses (each will be built by a Bus class, and should have a chosen number of seats, and be associated with a pair of destinations (one to leave from and one to arrive at -- these might get updated after each trip), and people (to choose the bus route they want and to sit in the buses). The buses should indicate if they're full, but until then should allow people to join the bus. Build such other structure to your model as makes sense to you without becoming overly sophisticated!!!
建立一个巴士公司模型。至少有三个目的地,一些巴士(每个都由BUS类构造,有可以调整数量的座位,并且要有成对的目的地(从一地出发驶向另外一地--每趟之后都会更新),people可以选他们要做得路线,以及做得哪辆bus)当人满的时候bus要提醒已满,否则可以让people上车。
