We want to define a class clockType, to implement the time of day in a program. The time is represented as a set of three integers: one to represent the hours, one to represent the minutes, and one to represent the seconds. We also want to perform the following operations on the time:

1. Set the time to secs = 0, mins = 0, and hrs = 0 implicitly when an object of type clockType is declared
2. Set the time to a specific value
3. Print the time
4. Increment the time by one second
5. Increment the time by one minute
6. Increment the time by one hour

1. Write the definition of the class clockType including the definition of the different methods.

2. Write a main program to test the various operations of the class clockType.

So you'll need to define a class, with three instance variables, declared private and of type int.

You will need a default constructor to set the time to 0/0/0.
Get/set methods.
toString() method if you're using Java, or an equivalent method to print the time.
Three methods to increment the hour/minute/seconds respectively.

Then you'll be ready to design the main program to test the class methods.

1. Here is a possible definition of the class clockType:

```python
class clockType:
def __init__(self):
self.hours = 0
self.minutes = 0
self.seconds = 0

def set_time(self, hours, minutes, seconds):
self.hours = hours
self.minutes = minutes
self.seconds = seconds

def print_time(self):
print(f"{self.hours:02d}:{self.minutes:02d}:{self.seconds:02d}")

def increment_seconds(self):
self.seconds += 1
if self.seconds >= 60:
self.increment_minutes()
self.seconds = 0

def increment_minutes(self):
self.minutes += 1
if self.minutes >= 60:
self.increment_hours()
self.minutes = 0

def increment_hours(self):
self.hours += 1
if self.hours >= 24:
self.hours = 0
```

2. Here is an example main program to test the various operations of the clockType class:

```python
def main():
clock = clockType()

# Testing set_time and print_time
clock.set_time(9, 30, 45)
clock.print_time()

# Testing increment_seconds
clock.increment_seconds()
clock.print_time()

# Testing increment_minutes
clock.increment_minutes()
clock.print_time()

# Testing increment_hours
clock.increment_hours()
clock.print_time()

if __name__ == "__main__":
main()
```

This program creates an instance of the clockType class, sets the time to a specific value, and performs different operations on the time, such as incrementing seconds, minutes, and hours. The current time is printed after each operation.