Hi,
I am trying inheritance in EJB.
public class ABean implements EntityBean
{
public void accept(AbstractVisitor v){}
}
public class BBean extends ABean implements EntityBean
{
public void accept(AbstractVisitor v){}
}
Then I have AbstractVisitor class
public class AbstractVisitor
{
public void visit(A a);
public void visit(B b);
}
A, B are home interface objects and B inherits A.
I am getting compilation error when I call visit method from my main passing
reference to A.
Error:Incompatible type for method. Explicit cast needed to convert A to B
Any help will be appreciated.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".