Sent from my iPhone On Jun 15, 2012, at 11:43 AM, Damien Cassou <[email protected]> wrote:
> On Fri, Jun 15, 2012 at 5:51 PM, Conrad Taylor <[email protected]> wrote: >> I would like to initialize the objects I create with some reasonable >> defaults and I don't want to have setters and getters for every instance >> variable. >> So, how do you create a new instance of a class? > > don't touch #new. Just implement #initialize and set your fields there. > > To everyone on the mailing list: we should encourage people to ask > such kind of questions on stackoverflow.com. > Damien, this is a great point and I'll ask such questions there in the future. Think different and code well, -Conrad > -- > Damien Cassou > http://damiencassou.seasidehosting.st > > "Lambdas are relegated to relative obscurity until Java makes them > popular by not having them." James Iry >
