User-defined Data Types

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

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

Get hands-on with 1200+ tech skills courses.