|
-
May 17th, 2004, 01:45 AM
#1
Structures are a bad thing?
A book I was reading said this:
Structures are frowned upon in object-oriented programming. A class can do everything that a Structure can do—and more—so you should use classes instead of Structures.
Why does it say that structures are frowned upon?
IIRC, we can use property let/get to validate the values that we pass to the structure, so it shouldn't be that, should it?
Is it wrong to assume that creating a class for the sake of a simple structure-type implementation is a waste?
Please explain in -terms.
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
|