Conversion operator
- Politechnika Śląska
- Computer Programming
Conversion operator a.k.a. conversion function / method, it converts object of its own class to other class T::operator X(); Conversion operator of class T to the X type: - no return value specified, - no argument(s) specified, - declared as a class method example: person::operator int(); ...