Question #327529

How to convert basic data to user defined data type?


Expert's answer

To convert basic data to user-defined data type one should use a constructor which obtained a single parameter of that basic data type.


For example constructor Int::Int(int i) will convert integer into user-defied type Int.


LATEST TUTORIALS
APPROVED BY CLIENTS