/* * Intro to Programming CSE 1310 * University of Texas at Arlington */ /* * File: TempsFandC.h * Author: jcmtiernan * * Created on June 27, 2017, 4:37 PM */ #ifndef TEMPSFANDC_H #define TEMPSFANDC_H class TempsFandC { public: TempsFandC(double fahrenheit) : fahrenheit(fahrenheit) { } TempsFandC(double celsius) : celsius(celsius) { } TempsFandC() { } TempsFandC(double fahrenheit, double celsius) : fahrenheit(fahrenheit), celsius(celsius) { } TempsFandC(const TempsFandC& other) : fahrenheit(other.fahrenheit), celsius(other.celsius) { } double GetCelsius() const { return celsius; } void SetCelsius(double celsius) { this->celsius = celsius; } double GetFahrenheit() const { return fahrenheit; } void SetFahrenheit(double fahrenheit) { this->fahrenheit = fahrenheit; } double GetKelvin() const { return kelvin; } void SetKelvin(double kelvin) { this->kelvin = kelvin; } private: double fahrenheit; double celsius; double kelvin; }; #endif /* TEMPSFANDC_H */