|
-
Jan 16th, 2006, 04:50 PM
#22
Re: What is the point of a class?
If you want to enforce any rules on the data (such as Hemisphere must be "North" or "South", and LName must be at least 2 characters) then classes are a good way to do it.
If you are only storing data (and dont care what values are stored) then use of a class is a matter of opinion - mine is that it would be OTT, and that a UDT is better.
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
|