Question: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 MetricFormula
2. {
3.
4. }
You need to ensure that the MetricFormula class can be used to compare the required objects. What
should you do? (Choose two) -(VB.NET) 

A Add the following code on line 2:
Inherits Icomparable 

B Add the following code on line 2:
Inherits IComparer 

C Add the following code on line 3:
Public Function Compare(x As Object, y As Object) As Integer
' implementation code
End Function 

D Add the following code on line 3:
Public Function CompareTo(obj As Object) As Integer
' implementation code
End Function 

+ Answer
+ Report
Total Preview: 2610

Copyright © 2024. Powered by Intellect Software Ltd