The method x declared in class y cannot override the method of the same signature declared in class z

  • Share
  • Share

Applies to:
NA

Description:
The method in a subclass unsuccessfully overrides a method in a superclass

Cause:
The return types are different

JAVA-Compiler , , , , , , , , ,

  1. admin
    March 9th, 2009 at 18:22 | #1

    Match the return type of the subclass and superclass versions of the method.

  2. admin
    March 9th, 2009 at 18:22 | #2

    Make the method name or parameter list different if you do not want the return types of methods to be the same.

  1. No trackbacks yet.