Type conversion takes place from user defined to basic using kg and grams example where it converts the input in the required output.
Friend function is used in addition of 2 time formats along with the concept of bridge. It gives output in hours:minutes:seconds.