K
kebabkongen
Hi,
I wish to override a method of a class A (I cannot alter class A)
I plan to do this by creating a class B which extends A, and overrides
the method.
When implementing class B, I cannot compile unless I create a
constructor in class B which calls super(<params>)
The problem is that super(<params>) calls the method I wish to
override, and with the given parameters throws an exception...
Is there someway to extend a class without calling the constructor of
the class being extended?
Regards, Per Magnus
I wish to override a method of a class A (I cannot alter class A)
I plan to do this by creating a class B which extends A, and overrides
the method.
When implementing class B, I cannot compile unless I create a
constructor in class B which calls super(<params>)
The problem is that super(<params>) calls the method I wish to
override, and with the given parameters throws an exception...
Is there someway to extend a class without calling the constructor of
the class being extended?
Regards, Per Magnus