Question: e fellowing class declaration to answer the questionist below class WeatherStation public emp, double wind, string wind dir, double prediplk void void void int Winda
e fellowing class declaration to answer the questionist below class WeatherStation public emp, double wind, string wind dir, double prediplk void void void int Winda int getTempo double getWindSpeed) : string getWind Direction): double getPrecipitation: void setTemp(int t void setWindData(double w, string dir): void setPrecip(double pl printTempO private int temperature double windSpeed, precipitation string windDir method 14) 14) Refer to the class declaration above. Which of the following methods is an accessor A) int WindChillo: C) WeatherStation: B) void setPrecipO D) double WindSpeed0 15) 15) Refer to the class declaration above. Which of the following methods is a constructor? A) WeatherStationO: C) int WindChillo B) double WindSpeed0: D) void setPrecipo 16) od, that uses the data members to produce a different view of the data than what is stored? A) void setPrecipO: C) double WindDirection0: 16) Refer to the class declaration above. Which of the following method is a mutator (or manipulator) meth B) WeatherStationO: D) int WindChillO: 17) Refer to the class declaration above. The declaration WeatherStation myStation(32, 10,"NW") is 17) valid in the main program. Assume the class declaration file has been included in the file containing the main program. B) False A) True 18) Refer to the class declaration above. The statement cin >s yourStation.precipitation is valid in the 18)_ main program, assuming that yourStation has been properly declared as a WeatherStation object. B) False A) True 19) Refer to the class declaration above. It is valid to place the statement temperature-45 in the implementation of WindChillO. B) False A) True
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
