Question: Consider the following C + + class Timer: class Timer { public: Timer ( int minutes, int seconds ) ; Timer ( int totalSeconds )

Consider the following C++ class Timer:
class Timer {
public:
Timer(int minutes, int seconds);
Timer(int totalSeconds);
void reset(int minutes, int seconds);
int totalTime() const;
private:
int minutes;
int seconds;
};
Which of the following statements accurately describes the initialization capabilities for objects of the Timer class?
NOTE: totalSeconds = minutes *60+ seconds;
0<=seconds<=59
0<=minutes
Group of answer choices
You can use the default constructor Timer() supplied by C++ to initialize a default object with minutes=0 and seconds =0.
A Timer object can ONLY be initialized with two integer arguments representing minutes and seconds, respectively.
A Timer object can be initialized with a single integer argument, which will be interpreted as the total number of seconds.
A Timer object can only be reset (using the reset method) to minutes=0 and seconds=0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!