我一直用以下方式设计课程:
public class add{
private int firstEntry;
private int secondEntry;
public add(int a , int b){
this.firstEntry= a;
this.secondEntry=b
}
public int makeAddition(){
return firstEntry+secondEntry;
}
}
Run Code Online (Sandbox Code Playgroud)
这种程序模式是否会减慢java中的程序?
| 归档时间: |
|
| 查看次数: |
283 次 |
| 最近记录: |