Search:

Type: Posts; User: helloworld922

Search: Search took 0.17 seconds.

  1. Re: So I'm not sure I really get the idea behind private data members vis a vis getters and setters.

    I don't like the lazy initialization method because it means my object really isn't really valid at all times, it only kind of looks valid. Internal code could try to access list directly, assume...
  2. Re: So I'm not sure I really get the idea behind private data members vis a vis getters and setters.

    +1 for jps's recommendations. There is next to no advantage of obj.x over obj.getX() from both performance and abstraction/code style perspectives (side note, I'm sure I'm ruining my reputation...
Results 1 to 2 of 2