How.
When I use "this", I get B class methods.
When "super" - B superclass methods. But I need A.
For example:
public class A
{
class B extends Object
{
public A getParent()
{
return (A); //Compiler error there "variable A not found in B"
}
B(){}
}
public A()
{
B b;
b = new B();
}
}
Main Topics
Browse All Topics





by: Venci75Posted on 2002-09-18 at 06:49:17ID: 7288236
yes - you can access the methods and members of the parent object (A) directly from B