In my application, my concrete class(MyClass) needs to implement a interface(ParentInterface).
There is only one method in MyInteface(MyMethod())
Also it is required to extend class(ParentClass) having only
one static method with same name(static MyMethod()).
Method in ParentClass is static.
I need to override the method in MyClass.
When i am trying to do this, compiler complains that MyMethod present in MyInterface is not defined which is non-static method.
Since i have already defined static MyMethod, another method with same name is restricted.
I can't manipulate ParentClass or ParentInterface.
Is there any way to get out of this situation??
[ October 23, 2007: Message edited by: Saurabh Gupta ]
[ October 23, 2007: Message edited by: Saurabh Gupta ]
[ October 23, 2007: Message edited by: Saurabh Gupta ]
There is only one method in MyInteface(MyMethod())
Also it is required to extend class(ParentClass) having only
one static method with same name(static MyMethod()).
Method in ParentClass is static.
I need to override the method in MyClass.
When i am trying to do this, compiler complains that MyMethod present in MyInterface is not defined which is non-static method.
Since i have already defined static MyMethod, another method with same name is restricted.
I can't manipulate ParentClass or ParentInterface.
Is there any way to get out of this situation??
[ October 23, 2007: Message edited by: Saurabh Gupta ]
[ October 23, 2007: Message edited by: Saurabh Gupta ]
[ October 23, 2007: Message edited by: Saurabh Gupta ]