?
Solved

compile error

Posted on 2012-04-04
2
Medium Priority
?
355 Views
Last Modified: 2012-04-05
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
Comment
Question by:Mike Eghtebas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
ioanton earned 2000 total points
ID: 37810320
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
 
LVL 34

Author Closing Comment

by:Mike Eghtebas
ID: 37811944
Thank you
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this blog post, we’ll look at how using thread_statistics can cause high memory usage.
If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question