Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Zermelo Newsgroups: comp.lang.java.programmer Subject: Re: Wormholes Date: Tue, 04 Sep 2012 16:09:54 +0200 Organization: A noiseless patient Spider Lines: 16 Message-ID: <85vcftnakt.fsf@teletu.it.nospam.invalid> References: <0ska4895k2mp2j5fb5p4qnue7lsbdpoeoo@4ax.com> <85zk56mgi1.fsf@teletu.it.nospam.invalid> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx04.eternal-september.org; posting-host="f3669e70304c68511686dd57a9d459e2"; logging-data="16085"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/0bofhctp/4IVvcXIKOhyy" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (windows-nt) Cancel-Lock: sha1:GRzn6wiMuf7A4dPbd1cYRTlZtkc= sha1:ASZ7kfUOGPehmeWlKqFTXitB0kE= Xref: csiph.com comp.lang.java.programmer:18534 Lew writes: > Why static? > Because a static variable is accessible from every methods. The same is not true for an instance variable. > Why not a getter method? > I think the OP can reach this solution by himself. > What about the Law of Demeter? The OP seems unwilling to restructure his code.