Define conversion operator??
A: class can have a public method for specific data type conversions. For instance:
class Boo
{
double value; public: Boo(int i )
operator double()
{
return value;
}
};
Boo BooObject;
double i = BooObject; // assigning object to variable i of type double. conversion operator now gets called to assign the value.