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