MAIN

所属分类:Java编程
开发工具:Java
文件大小:2KB
下载次数:78
上传日期:2010-10-28 03:00:03
上 传 者sconio
说明:  1)写M类最后的参数,包括比较次数,开关频率,检测数量的属性,并重写构造和toString方法。 (2)写一个抽象类,它包括数据进行排序。最后提供了三种方法,分别比较,检测,交流在同一时间操作,有权改变的M类对象相关的属性的私有成员。并提供一个虚拟方法doSort,同时提供了最后一个方法排序(先设置初始值m对象,然后调用doSort方法返回一个对象引用男) (3)撰写三种不同的方法排序的A类的派生类格A1,A2,± 3 (4)写一个测试类为主要类别,分别产生的A1和A2,A3和对象调用Sort方法,三种方法中的显示性能参数排序时间。 (5)谈谈这个类的设计是合理的,可以得到改善。
(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. )

文件列表:
MAIN.txt (5983, 2010-10-28)

近期下载者

相关文件


收藏者