Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder1.news.weretis.net!news.albasani.net!.POSTED!not-for-mail From: Jan Burse Newsgroups: comp.lang.java.programmer Subject: Re: Style Police (a rant) Date: Sun, 28 Aug 2011 01:59:53 +0200 Organization: albasani.net Lines: 34 Message-ID: References: <36f4953c-f085-4850-85eb-bb248a8cf1bb@glegroupsg2000goo.googlegroups.com> <252cd91f-0695-4cda-8ba0-70cfbc5fbd7a@glegroupsg2000goo.googlegroups.com> <78817664-363f-4e73-99e5-ef3c0a3566af@glegroupsg2000goo.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net tbA4SUJeauhCQlDCtg5oS/CO9XxtIQoTwfE/NpzjX4zON0kOsL64Cr9bKMZS9V7iUpyPGBrxOaOy7ZQyGXS5Kg== NNTP-Posting-Date: Sat, 27 Aug 2011 23:59:53 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="e7so9k0GuRVZMqHIzNw6A8NRX2J68Jbq9LxV7DKo3Xlg+LapBM1x3GF5R6EU8S+nCSwASfJP6pfiCsqEpUoE509OlRleqHGzjLVeQRmMFdatgjtEUrPDb3piDQ21z8wd"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0) Gecko/20110820 Firefox/6.0 SeaMonkey/2.3.1 In-Reply-To: <78817664-363f-4e73-99e5-ef3c0a3566af@glegroupsg2000goo.googlegroups.com> Cancel-Lock: sha1:Qvf8PMyYtqUQ2PzmC0CIXRuM6NE= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7429 Lew schrieb: > [... snip ...] Looks like you are preaching to the convert. Anyway, here is some fun: class A { A() { init(); } init() { } } class B { foo = 3; init() { super.init(); System.out.println("foo="+foo); } } What value for foo will be printed when I do new B()? Would it make sense to put a final on init()? Bye