Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: Best Way to Pass Info Between Objects? Date: Sun, 08 Jan 2012 13:43:27 -0500 Organization: A noiseless patient Spider Lines: 13 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 8 Jan 2012 18:36:46 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="qwFw1g9RsQ6TkML5yezG9A"; logging-data="28399"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19+q9qMVjQSK2p1nvXr4hojjNsckcyOcfw=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20111110 Icedove/3.0.11 In-Reply-To: Cancel-Lock: sha1:dAk6zqYQ8YaodZmaxIYtWvbsuO8= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11112 On 01/08/2012 11:41 AM, Novice wrote: > Sorry, that's probably not the best of subject lines but I'm having trouble > coming up with a concise one.... > > I'm trying to reason out the best way to pass information from an > instantiating class to an instantiated class. So, let's say class Foo > invokes class Bar to do something. Bar needs some specific information from > Foo to do its job. What is the best way to pass this information from Foo > to Bar? > Look at the API of an open source project similar to yours. Or even a dissimilar one. I use Eclipse, others Netbeans, both have an API that you can study.