Answer:
Step-by-step explanation:
public class Temperature
{
double ftemp;
public int Constructor(double fahrenheit)
{
ftemp = fahrenheit;
return Convert.ToInt32(ftemp);
}
public void setFahrenheit(double fahrenheit)
{
ftemp = fahrenheit;
}
public void getFahrenheit()
{
ftemp = Constructor(ftemp);
}
public void getCelcius()
{
ftemp = (ftemp - 32) * 5 / 9;
}
public void getKelvin()
{
ftemp = (ftemp - 32) * 5 / 9 + 273.15;
}
}