Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2008
    Posts
    1
    Rep Power
    0

    Default A core java Question

    Assume that class A extends class B, ich extends class C, also all three classes implements the method test(). how can a methd in class A invoke the test() method defined in class C with out creating a new inctance of class C.


    1) super.test() 2) super.super.test() 3) c.test()
    :)

  2. #2
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default Hei

    Hi
    It is not possible. Only We Can make a call to immediate super class using super.

    If you want to make a call to the particular class create object and call

  3. #3
    sanjeevtarar's Avatar
    sanjeevtarar is offline Senior Member
    Join Date
    Apr 2008
    Location
    Jaipur(India)
    Posts
    318
    Rep Power
    7

    Default

    Quote Originally Posted by javarishi View Post
    It is not possible. Only We Can make a call to immediate super class using super.

    If you want to make a call to the particular class create object and call
    ya you can call only immediate super class method by using super keyword.



    sanjeev


Similar Threads

  1. ckkl-core 0.3.0
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 11-09-2007, 11:32 PM
  2. ckkl-core 0.2.4
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 11-02-2007, 04:17 PM
  3. ckkl-core 0.2.3
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 10-31-2007, 06:20 PM
  4. ckkl-core 0.2.2
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 10-23-2007, 02:34 PM
  5. whats the difference between Java core,J2EE......
    By prince24 in forum New To Java
    Replies: 2
    Last Post: 07-11-2007, 07:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •