Question: class Clock { private: int minutes _ ; / / number of minutes from midnight public: Clock ( ) ; } ; void showTime (

class Clock {
private:
int minutes_; //number of minutes from midnight
public:
Clock();
};
void showTime() const;
Given that myClock is an object of the above Clock class, which of the following is a proper way to call the showTime function?
myClock.showTime;
myClock.showTime()
showTime(myClock);
 class Clock { private: int minutes_; //number of minutes from midnight

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 Databases Questions!