User-Defined Data Types

We can also set our own preferences for the input and output operators.

If we overload the input and output operators, our data type behaves like a built-in data type.

Get hands-on with 1400+ tech skills courses.