Hello,

I am trying to override method in descendant class and have the following in
my application:

public abstract class pgA extends CSpPage
{
   abstract int some_method();

  SubmitButton_onWebEvent(CSpWebEvent event)
  {
        // some code
        .......
        some_method();

        // more code

  }     
}

class pgB extends pgA
{
        public int some_method() { // impelementation goes here }
}

The idea is that when SubmitButton on pgB clicked,
SubmitButton_onWebEvent(CSpWebEvent event) of pgA (pgB's ancestor) will be
executed, some_method() gets called and execution will be as coded in
pgB.some_method().

Apparently, NetDynamics has problems deserealizing pgA and pgB, I guess it
has something to do with pgA being abstract class. If abstract is removed,
no error is generated by ND, but some_method() doesn't get overriden, i.e
pgA.some_method() gets called instead of pgB.some_method()

Am I doing something wrong ? Does anyone know of alternative approaches to
this problem ?

Thanks in advance,

Alex
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to