📄 company.java
字号:
package company;
import company.animal.Animal;
import company.animal.feet.*;
import company.animal.nofeet.*;
import company.equipment.*;
import company.Farm;
public class Company {
private String name;
private String type;
public Company (String name, String type) {
this.name = name;
this.type = type;
}
public void setName (String name) {
this.name = name;
}
public void setType (String type) {
this.type = type;
}
public String getName() {
return this.name;
}
public String getType() {
return this.type;
}
public String getInfo() {
String info = "Name: "+this.name+"\n"+
"Type: "+this.type;
return info;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -