Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I ' m encountering the following error: The constructor Satellite ( int , String, Angle, int, int, int, int, int, int, int ) is undefinedJava

I'm encountering the following error: The constructor Satellite(int, String, Angle, int, int, int, int, int, int, int) is undefinedJava(134217858)
here is the code the error occurs in
package unsw.blackout;
import unsw.utils.Angle;
public class StandardSatellite extends Satellite {
private static final int LINEAR_VELOCITY =2500;
private static final int MAX_RANGE =150000;
private static final int MAX_STORAGE =80;
private static final int MAX_FILES =3;
private static final int RECEIVE_BANDWIDTH =1;
private static final int SEND_BANDWIDTH =1;
public StandardSatellite(int satelliteID, Angle positionDegrees, int height){
super(satelliteID, "Standard", positionDegrees, height, LINEAR_VELOCITY, MAX_RANGE,
MAX_STORAGE, MAX_FILES, RECEIVE_BANDWIDTH, SEND_BANDWIDTH);
}
}
here is the constructor of the superclass it should be reffering to
public Satellite(int satelliteID, String type, Angle posDegrees, Double height, int linearVelocity,
int maxRange, int maxStorage, int maxFiles, int receiveBandwidth, int sendBandwidth){
this.satelliteID = satelliteID;
this.type = type;
this.posDegrees = posDegrees;
this.linearVelocity = linearVelocity;
this.height = height;
this.maxRange = maxRange;
this.maxStorage = maxStorage;
this.maxFiles = maxFiles;
this.receiveBandwidth = receiveBandwidth;
this.sendBandwidth = sendBandwidth;
this.currentStorage =0;
this.currentFiles =0;
}
pls help solve this issue

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions