Description: 1) write a final parameters of class M, including the number of comparisons, switching frequency, detecting the number of attributes, and override the constructor and toString methods.
(2) to write an abstract class A, which includes the data to sort. Provides three final method, the respective comparison, detection, exchange operation at the same time, the right to change the private member of M-class objects related properties. And provide a virtual method doSort, while providing a final method sort (first set the initial value M object, then call doSort method returns an object reference M)
(3) Write three different methods to rank the A class derived class A1, A2, A3
(4) Write a test class as main class, were generated A1, A2, A3 of the object and call the sort method, three methods show the time in the sort of performance parameters.
(5) to talk about this class design is reasonable and can be improved.
To Search:
File list (Check if you may need any files):
MAIN.txt