Results 21 to 24 of 24
Thread: Super Keyword
- 07-29-2011, 09:34 AM #21
- 07-29-2011, 09:56 AM #22
Moderator
- Join Date
- Apr 2009
- Posts
- 10,458
- Rep Power
- 16
Crikey!
If only I got paid for this...
- 07-29-2011, 03:11 PM #23
Member
- Join Date
- Jul 2011
- Posts
- 10
- Rep Power
- 0
- 07-29-2011, 03:49 PM #24
Member
- Join Date
- Jul 2011
- Posts
- 10
- Rep Power
- 0
Still however I got the same issue.
It really looks frustrating.... I try to compile the program
class A
{
int i=10,j=20;
}
class B extends A {
B()
{}
int k=30;
void sum()
{
System.out.println("The sum of i, j, k : "+(i+j+k));
}
}
I still get the error "cannot find symbol"
symbol: class A
and it is also not able to find variables i and j. However it works fine in an IDE , i don't mind doing programming in ide but i was told not to touch IDE till my basic java programming is completed. What can I do to resolve the issue? The problem only occurs when I try to use the Inheritance feature.... (atleast until now) .
Similar Threads
-
Can you use the super keyword when variables in parent class are private?
By lam5442 in forum New To JavaReplies: 2Last Post: 06-03-2011, 09:15 PM -
rule for using the super keyword
By javastuden in forum New To JavaReplies: 2Last Post: 10-01-2010, 09:02 AM -
calling variable using super super..
By Stephen Douglas in forum New To JavaReplies: 7Last Post: 08-16-2010, 06:12 AM -
this keyword
By coltragon in forum New To JavaReplies: 10Last Post: 03-01-2010, 09:20 AM -
Use of this keyword
By Java Tip in forum Java TipReplies: 0Last Post: 11-18-2007, 07:32 PM


LinkBack URL
About LinkBacks.gif)
Reply With Quote

Bookmarks