//Class definition.
class Clock{
public:
int hours;
//Constructor syntax.
// current_class_name + (parameters if needed) {...}
Clock() {
//Set the hour as 12.
hours=12;
}
};
7.9m questions
10.6m answers