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