You work as an application developer at Certkiller...
多选题

You work as an application developer at Certkiller .com. Certkiller .com has instructed you to create a class named MetricFormula. This class will be used to compare MetricUnit and EnglishUnit objects.The MetricFormula is currently defined as follows (Line numbers are used for reference purposes only): 1. public class MetricFormula2. { 3. 4. } You need to ensure that the MetricFormula class can be used to compare the required objects. What should you do? ()

发布日期:2020-04-10

A.Add the following code on line 1: : IComparable {

B.Add the following code on line 1: : IComparer {

C.Add the following code on line 3: public int Compare (object x, object y) {// implementation code }

D.Add the following code on line 3: public int CompareTo (object obj) {// implementation code }

热门试题

热门资讯

    暂无相关推荐~

分享给好友

分享到朋友圈

取消

使用浏览器的分享功能,把这篇文章分享出去

确定