Paolo

Paolo

  • NA
  • 2
  • 0

Abstract constant: how to?

Oct 18 2006 11:17 AM
Hello everyone,

I have got an abstract ClassA that is implemented by ClassA1, ClassA2, etc.

ClassA1 and ClassA2 define a constant that is used in their own methods but must also be accessible from a method implemented in the abstract ClassA.

The idea was to define an abstract constant in ClassA and then override it with the real value in ClassA1 and ClassA2. Unfortunately that did not work.

Any idea?

Thanks,
Paolo