[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 360
  • Last Modified:

compile error

This is the error:

C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\begjsp-ch07x\WEB-
INF\classes\com\wrox\physics>javac *.java
Light.java:3: com.wrox.physics.Light is not abstract and does not override abstract method setWaveLength(long) in com.wrox.physics.Wave
public class Light implements Particle, Wave {
       ^
1 error

Question: How can I correct this error?

Thank you.
Light.java
Particle.java
Wave.java
0
Mike Eghtebas
Asked:
Mike Eghtebas
1 Solution
 
ioantonCommented:
The methods getWavelenght() and setWavelenght() do not match the ones declared in the Wave interface. The method names are case sensitive. (length vs. Length)
0
 
Mike EghtebasDatabase and Application DeveloperAuthor Commented:
Thank you
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now