Conversion Operations
Constuctors are also used implicitly.
rational x, y; ...x = y * 3;
Temporary values can also be created directly by the programmer, by invoking the constructor as if it were an ordinary function.
x = y * rational(3, 4);
Previous slide
Next slide
Back to first slide
View graphic version