java题目急求
发布网友
发布时间:2022-05-01 18:24
我来回答
共1个回答
热心网友
时间:2022-06-21 04:00
Teacher.java
public class Teacher {
public double add(double a,double b) {
return a + b;
}
public double sub(double a,double b) {
return a - b;
}
}
Student.java
public class Student {
public void speak() {
System.out.println("老师好");
}
}