0

I have an interface with default String toString() {/*code*/} as one of the members. when compiling I get the error:

Test.java:63: error: default method toString in interface TestObj overrides a member of java.lang.Object
                default String toString()

Trying to use @Override yields the same error. Is there anyway I can override toString() in this situation?

James Oswald
  • 510
  • 3
  • 12
  • 25

0 Answers0