Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: Best Way to Pass Info Between Objects? Date: Mon, 09 Jan 2012 04:13:54 -0800 Organization: Canadian Mind Products Lines: 19 Message-ID: References: Reply-To: Roedy Green NNTP-Posting-Host: Z2l1DcCELS0rATq8NqV4Sw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11123 On Sun, 8 Jan 2012 16:41:52 +0000 (UTC), Novice wrote, quoted or indirectly quoted someone who said : >. What is the best way to pass this information from Foo >to Bar? the most common way is with parms to a method. Other possibilities. 1. in parm to constructor. 2. with exposed variables (not recommended) 3. with a delegate object. See http://mindprod.com/jgloss/delegate.html -- Roedy Green Canadian Mind Products http://mindprod.com If you can't remember the name of some method, consider changing it to something you can remember.