Hi there,
Just to warn you, I am a beginner in
Java, so don't believe a
word I say. I thought this might help though:
In your original code, you tried to call the demo method by using
But, demo() is the inner class B's method!
Although class C does inherit an inner class following the blueprint from class A, you still need to create an instance of class B ( a 'B' object ). That object then gets created and that object can use IT'S demo() method as I've shown below.
Hope this helps :-)
Cheers
Joe
[ December 14, 2008: Message edited by: Joe Lemmer ]