P
Problemotyp
Gast
Hallöchen, ich möchte aus einer Klasse ein Interface machen um damit weiterarbeiten zu können.
Hier ist die Klasse:
[Java]
/* Extent.java */
class Extent{ //declaration
double yMinimum, yMaximum,
xMinimum, xMaximum,
extentHoehe, extentBreite;
Extent(double ymin, double ymax, double xmin, double xmax, double hoehe, double breite) { //constructor Extent
yMinimum = ymin;
yMaximum = ymax;
xMinimum = xmin;
xMaximum = xmax;
extentHoehe = hoehe;
extentBreite = breite;
}
double getYMin() { // method to get the yMinimum
return yMinimum;
}
double getYMax() { // method to get the yMaximum
return yMaximum;
}
double getXMin() { // method to get the xMinumum
return xMinimum;
}
double getXMax() { // method to get the xMaximum
return xMaximum;
}
double getHoehe() { // method to get the high
return extentHoehe;
}
double getBreite() { // method to get the wide
return extentBreite;
}
void setYMin(double ymin) { // method to set the yMinumum
yMinimum = ymin;
}
void setYMax(double ymax) { // method to set the yMaximum
yMaximum = ymax;
}
void setXMin(double xmin) { // method to set the xMinumum
xMinimum = xmin;
}
void setXMax(double xmax) { // method to set the yMaximum
xMaximum = xmax;
}
void setHoehe(double hoehe) { // method to set the high
extentHoehe = hoehe;
}
void setBreite(double breite) { // method to set the wide
extentBreite = breite;
}
}
[/Java]
Was muss diesbezüglich getan werden?
Hier ist die Klasse:
[Java]
/* Extent.java */
class Extent{ //declaration
double yMinimum, yMaximum,
xMinimum, xMaximum,
extentHoehe, extentBreite;
Extent(double ymin, double ymax, double xmin, double xmax, double hoehe, double breite) { //constructor Extent
yMinimum = ymin;
yMaximum = ymax;
xMinimum = xmin;
xMaximum = xmax;
extentHoehe = hoehe;
extentBreite = breite;
}
double getYMin() { // method to get the yMinimum
return yMinimum;
}
double getYMax() { // method to get the yMaximum
return yMaximum;
}
double getXMin() { // method to get the xMinumum
return xMinimum;
}
double getXMax() { // method to get the xMaximum
return xMaximum;
}
double getHoehe() { // method to get the high
return extentHoehe;
}
double getBreite() { // method to get the wide
return extentBreite;
}
void setYMin(double ymin) { // method to set the yMinumum
yMinimum = ymin;
}
void setYMax(double ymax) { // method to set the yMaximum
yMaximum = ymax;
}
void setXMin(double xmin) { // method to set the xMinumum
xMinimum = xmin;
}
void setXMax(double xmax) { // method to set the yMaximum
xMaximum = xmax;
}
void setHoehe(double hoehe) { // method to set the high
extentHoehe = hoehe;
}
void setBreite(double breite) { // method to set the wide
extentBreite = breite;
}
}
[/Java]
Was muss diesbezüglich getan werden?