import

Discussion in 'Java' started by Nishi Bhonsle, Jan 14, 2004.

  1. I have a public class Summary containing all public methods under
    C:\adc\source\java\Impl1\test\source\dev\code\prog1\

    which I need to instantiate and call its methods in the NewTest class under

    C:\adc\source\java\Impl2\test\dev\code\prog2\

    Can I just import the Summary class in NewTest and then instantiate it and call its methods?
    (import Impl2.test.dev.code.prog2.*;)


    Thanks.
    Nishi Bhonsle, Jan 14, 2004
    #1
    1. Advertising

  2. Nishi Bhonsle

    Tony Morris Guest

    Yes.
    Try It And See(TM)

    --
    Tony Morris
    (BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
    Software Engineer
    IBM Australia - Tivoli Security Software
    (2003 VTR1000F)


    "Nishi Bhonsle" <> wrote in message
    news:...
    >
    > I have a public class Summary containing all public methods under
    > C:\adc\source\java\Impl1\test\source\dev\code\prog1\
    >
    > which I need to instantiate and call its methods in the NewTest class

    under
    >
    > C:\adc\source\java\Impl2\test\dev\code\prog2\
    >
    > Can I just import the Summary class in NewTest and then instantiate it and

    call its methods?
    > (import Impl2.test.dev.code.prog2.*;)
    >
    >
    > Thanks.
    >
    Tony Morris, Jan 14, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul Opal
    Replies:
    12
    Views:
    931
    Paul Opal
    Oct 11, 2004
  2. JPractitioner
    Replies:
    13
    Views:
    20,121
    Roedy Green
    Feb 24, 2006
  3. Vitali Gontsharuk
    Replies:
    2
    Views:
    555
    Vitali Gontsharuk
    Aug 25, 2005
  4. Artur M. Piwko

    import/from import question

    Artur M. Piwko, Jun 29, 2003, in forum: Python
    Replies:
    1
    Views:
    827
    Peter Hansen
    Jul 2, 2003
  5. Dennis
    Replies:
    2
    Views:
    490
    Dennis
    Aug 18, 2003
Loading...

Share This Page