CoreJava/exp6/Operation.java

15 lines
209 B
Java
Raw Permalink Normal View History

2024-05-09 09:10:51 +08:00
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();
}