Challenge: Overload a Function
Here is a coding challenge based on the concepts of function overloading.
We'll cover the following...
Problem statement
Consider you have a function info()
:
void info(TimeOfDay time) {
writef("%02s:%02s", time.hour, time.minute);
}
Your task is to overload the info()
function for the following structs as well: