Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #22389

Re: how to access object of one class in another class

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe26.iad.POSTED!not-for-mail
From Arved Sandstrom <asandstrom2@eastlink.ca>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2
MIME-Version 1.0
Newsgroups comp.lang.java.programmer
Subject Re: how to access object of one class in another class
References <13ede5d6-5aa5-41b6-834e-330e5ae94000@googlegroups.com>
In-Reply-To <13ede5d6-5aa5-41b6-834e-330e5ae94000@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Lines 14
Message-ID <YF0Vs.830$Q91.526@newsfe26.iad> (permalink)
X-Complaints-To abuse@newsgroups-download.com
NNTP-Posting-Date Wed, 20 Feb 2013 09:27:20 UTC
Organization Public Usenet Newsgroup Access
Date Wed, 20 Feb 2013 05:27:19 -0400
X-Received-Bytes 1582
Xref csiph.com comp.lang.java.programmer:22389

Show key headers only | View raw


On 02/20/2013 04:04 AM, xodepp shrestha wrote:
> i am having problem in JDBC.there are two different class within same package name.one class is dbconnect and another is login. I need to call the dbconnect class within login class and i need to call the connection object from the dbconnect class in the login class.
> Please help me
>
Start here: http://docs.oracle.com/javase/tutorial/

Part of what you need is specifically 
http://docs.oracle.com/javase/tutorial/java/index.html, and even more 
specifically http://docs.oracle.com/javase/tutorial/java/javaOO/index.html.

A newsgroup works best for targeted questions. If you don't know barely 
anything about a subject you need to read books and tutorials.

AHS

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

how to access object of one class in another class xodepp shrestha <xodepp@gmail.com> - 2013-02-20 00:04 -0800
  Re: how to access object of one class in another class Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-02-20 05:27 -0400
    Re: how to access object of one class in another class Gene Wirchenko <genew@telus.net> - 2013-02-21 09:45 -0800
  Re: how to access object of one class in another class Lew <lewbloch@gmail.com> - 2013-02-20 08:09 -0800

csiph-web