Results 1 to 3 of 3
Thread: Inner class problems
- 04-28-2007, 11:11 PM #1
- 04-28-2007, 11:20 PM #2
Member
- Join Date
- Apr 2007
- Location
- Indiana
- Posts
- 83
- Rep Power
- 0
This will fix the compilation issue:
Java Code:class Inner2 extends Inner1 { public Inner2() { Outer.this.super(); } }
- 08-13-2008, 08:56 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Better if you can simply explain a little with the answer pal. ;)
Reason is, super(); in Inner2 class cannot refer before the Outer class constructor call, because it's the super class. Inner2 class extend Outer there. Hope it's clear.
Similar Threads
-
what is the Priority for execution of Interface class and a Abstract class
By Santoshbk in forum Advanced JavaReplies: 0Last Post: 04-02-2008, 07:04 AM -
Accessing inner class from outer class (an example)
By Java Tip in forum Java TipReplies: 0Last Post: 02-17-2008, 09:03 AM -
Inner class accessing outer class
By Java Tip in forum Java TipReplies: 0Last Post: 02-17-2008, 08:59 AM -
problems with class Splashscreen in netbeans
By ernieBob in forum NetBeansReplies: 0Last Post: 02-07-2008, 01:30 AM -
Problems in running client class
By ai_2007 in forum Advanced JavaReplies: 0Last Post: 06-30-2007, 02:57 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks