Rachel
2011-06-30 22:31:35 UTC
Hi.
I noticed for A4 Question 2 that we have to write a couple of
constructors for Rationalnumber that are not passed the full list
parameters. I.e. they're missing one or both of num and denom. Can
we just initialize the missing values to be whatever we want them to
be then? For example, just initialize the Rationalnumber to 0 if no
num or denom exist? Thanks.
I noticed for A4 Question 2 that we have to write a couple of
constructors for Rationalnumber that are not passed the full list
parameters. I.e. they're missing one or both of num and denom. Can
we just initialize the missing values to be whatever we want them to
be then? For example, just initialize the Rationalnumber to 0 if no
num or denom exist? Thanks.