Description: Realize the program simulation of the train ticket of simple.
A train ticket into and sleeping, the ticket have common tickets and staff. A base class: ticker, a subclass: hardseat, sleeper. A sun class: normal, extra. Hardseat, sleeper inherited the ticker, and normal, extra are inherited hardseat and sleeper.
The train ticket is beginning port and terminal, time, seat, the price.
Customers can according to the beginning port terminal and find necessary information, can buy a ticket.
Management personnel may increase, delete data. Can put into one data, find a data, or delete a data.
Program through the ArrayList to realize the increase, the search, and delete data.
To Search:
File list (Check if you may need any files):
DongTai
.......\.classpath
.......\.project
.......\.settings
.......\.........\org.eclipse.jdt.core.prefs
.......\bin
.......\...\com
.......\...\...\cn
.......\...\...\..\print.class
.......\...\...\..\TestDongtai.class
.......\src
.......\...\com
.......\...\...\cn
.......\...\...\..\TestDongtai.java
实验二 Java基本程序设计结构.doc