Thang Nguyen
Posts: 18
Nickname: thang
Registered: Apr, 2002
|
|
Re: Build a Constructor
|
Posted: Apr 15, 2002 5:54 AM
|
|
Signh, I did not know the existence of Point actually. I will find it out.
Matt, very informative answer.
Thomas, I have tried bulding constructors with a list of arguments. However, the problems is that in my class no one knows what we should deal with the empty constructors and more, with the list of arguments in other constructors, what should we do if the values of these arguments are not valid for the use within the constructor or class? In the case that invalid values passed in as arguments are detected, should I assign the programmer default values, such as for int, value is 0, and double is 0.0, and float is 0.0f, and string or char, and so on, is "Not defined"
Anyways, I have to say that it is very interesting to be here in the Forums which I just found last night. I spend hours here just to read people's, like you guys answers to different questions. Thanks a lot! - Thang
|
|