15 lines
209 B
Java
15 lines
209 B
Java
package exp6;
|
|
|
|
public abstract class Operation {
|
|
double a;
|
|
double b;
|
|
|
|
public void setNumber(double a, double b){
|
|
this.a = a;
|
|
this.b = b;
|
|
}
|
|
|
|
abstract double result();
|
|
|
|
}
|