-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,181
  • 4
  • 29
  • 56
Rahul Vedpathak
  • 1,346
  • 3
  • 16
  • 30

1 Answers1

1

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

Eran
  • 387,369
  • 54
  • 702
  • 768