#include <iostream>
#include <sstream>
using namespace std;
class Time
{
public:
Time(short hour, short minute, short second)
: hour_ (hour), minute_(minute), second_(second)
{}
short getTime() const;
private:
friend ostream & operator<< (ostream &, Time const &);
short hour_, minute_, second_;
};
ostream & operator<< (ostream & os, Time const & time)
{
os << time.hour_ << ':' << time.minute_ << ':' << time.second_;
return os;
}
int main()
{
Time time(15,30,12);
cout << time;
}