Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Implicit super constructor is undefined.

807603Nov 19 2007 — edited Nov 19 2007
I'm getting this error:
Implicit super constructor WeightedMeasurement is undefined. Must explicity invoke another constructor.

WeightedMeasurement is an abstract class in apache.commons.math. So no, it does not have a constructor as such, though it does define 2:
WeightedMeasurement(double weight, double measuredValue)
WeightedMeasurement(double weight, double measuredValue, boolean ignored)
So I I tried to override like so:
import org.apache.commons.math.estimation.WeightedMeasurement;
public class MyWeightedMeasurement extends WeightedMeasurement {
	public MyWeightedMeasurement() {
		String s = new String();
	}

	public MyWeightedMeasurement(double weight, double measuredValue, int x) {
		new MyWeightedMeasurement();
	}
}
but no dice.
What do I need to do?
I searched, but didn't find any help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 17 2007
Added on Nov 19 2007
6 comments
786 views