|
-
Jan 18th, 2003, 01:28 AM
#1
Thread Starter
Addicted Member
opinion on classes
if i have one variable in a class, and all i need of that variable is just to set it or get it, should i still make it private and then have accesor functions? I've heard this is proper decorum, but it seems like a lot of extra code for just a variable, when it would be just as easy to put it in the public section. if you would, post your thoughts
thanks
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
|