J
Jason Shohet
I have a class with protected variables and some accessor methods, , get,
set ...
Maybe I have a brain blockage today but I'm thinking, why not just make
those variables public.
After all, someone can do just as great harm by misusing a set { }
accessor method as just doing myObj.lastname = "Big Bird"; which he
could do in a second class, if the variable is public on the first class.
IOTW, what does keeping with the protected / accessor methods do for me.
Thanks
Jason Shohet
set ...
Maybe I have a brain blockage today but I'm thinking, why not just make
those variables public.
After all, someone can do just as great harm by misusing a set { }
accessor method as just doing myObj.lastname = "Big Bird"; which he
could do in a second class, if the variable is public on the first class.
IOTW, what does keeping with the protected / accessor methods do for me.
Thanks
Jason Shohet