Results 1 to 3 of 3
Thread: A core java Question
- 04-21-2008, 07:45 AM #1
Member
- Join Date
- Apr 2008
- Posts
- 1
- Rep Power
- 0
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()
:)
- 04-21-2008, 07:59 AM #2
Member
- Join Date
- Apr 2008
- Posts
- 91
- Rep Power
- 0
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
- 04-21-2008, 08:04 AM #3
Similar Threads
-
ckkl-core 0.3.0
By JavaBean in forum Java SoftwareReplies: 0Last Post: 11-09-2007, 10:32 PM -
ckkl-core 0.2.4
By JavaBean in forum Java SoftwareReplies: 0Last Post: 11-02-2007, 03:17 PM -
ckkl-core 0.2.3
By JavaBean in forum Java SoftwareReplies: 0Last Post: 10-31-2007, 05:20 PM -
ckkl-core 0.2.2
By JavaBean in forum Java SoftwareReplies: 0Last Post: 10-23-2007, 01:34 PM -
whats the difference between Java core,J2EE......
By prince24 in forum New To JavaReplies: 2Last Post: 07-11-2007, 06:54 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks