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