So constructor Rational(int x = 0, int y = 1) could also be a convertion constructor. It is good to learn. Thanks.
Quote Originally Posted by ZuK View Post
Code:
Rational(int x = 0, int y = 1)
Because of the default value for y that constructor can convert an int to a Rational.
Kurt