----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------


        If DataStmt extends DataConn, and Conn is a public
or protected class variable of DataConn, then DataStmt
inheritsConn.

        -Tom

Sun JunXu wrote:
> 
> ----------------------------------------------------
> Please read the FAQ at <http://java.apache.org/faq/>
> It has a search feature and all the answers!
> ----------------------------------------------------
> 
> hi,guys,
> wish can get some helps from you despite it is a little bit out of range.
> I have a super class called DataConn, in this class , I create a connection
> to database server called Conn, then I have a child class called DataStmt
> extends DataConn,
> in this class , how can I use Conn in this class? I don't want to write
> these codes (establish connection to database) in every class.
> thanks for any help.
> 
> sincerely
> sun
> 
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]

-- 
+-------------------------------------------------------------------+
+  Thomas M. Sasala, Electrical Engineer       [EMAIL PROTECTED]       +
+  MRJ Technology Solutions                    http://www.mrj.com   +
+  10461 White Granite Drive, Suite 102        (W)(703)277-1714     +
+  Oakton, VA   22124                          (F)(703)277-1702     +
+-------------------------------------------------------------------+


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to