How to deal with this problem?
1. constructor Create(var Success: Boolean);
The client will see the parameter obviously.
2. raise exception
The client must be told to use try...except to catch the exception.
3. Destroy; Self := nil;
The client must validate the object it wants to create.
2008年3月7日星期五
订阅:
博文评论 (Atom)
没有评论:
发表评论