Jump to content

Using properties or parms


Recommended Posts

I guess...but what if it doesn't validate? The old value is gone and can't be brought back.

 

...the first option is also less code :)

 

furthermore...i rarely ever have public properties inside my classes. all access to the data (read and write) goes through a function. that way, later on, if I want to change how it is read/written (maybe use title instead of name), i just modify the class instead of all the code using it

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.