PdfPrep.com

How should you implement the interfaces?

HOTSPOT

You plan to implement the following interfaces:

You have the following methods:

• getCelsiusFromKelvin returns the temperature in Celsius.

• getFahrenheitFromKelvin returns the temperature in Fahrenheit.

You need to implement both interfaces within a class named TempControl. The TempControl class must return the Celsius temperature as the default temperature if the following code executes.

How should you implement the interfaces? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Answer:

Exit mobile version