|
-
February 13th, 2010, 06:07 PM
#3
Re: A question regarding convertion constructor
So constructor Rational(int x = 0, int y = 1) could also be a convertion constructor. It is good to learn. Thanks.
 Originally Posted by ZuK
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|