-1

I have a old code which is like this-

Public class ABC{
.
.
.

Public static class InnerClass{

    Public static method do something(){
       }
    }
}

I want to override do something() method in the implemented class.

What's the optimized way to do this?

Santhosh
  • 8,131
  • 3
  • 28
  • 56
Rahul Vedpathak
  • 1,216
  • 13
  • 24

1 Answers1

1

You can't override a static methods. Only instance methods can be overridden.

Eran
  • 374,785
  • 51
  • 663
  • 734