📄 car.java
字号:
import java.io.Serializable;
import javax.naming.NamingException;
import javax.naming.Reference;
import javax.naming.Referenceable;
public class Car implements Serializable{
private String brandy;
private String type;
private String color;
public Car() {
// TODO Auto-generated constructor stub
}
public Car(String brandy,String type,String color) {
// TODO Auto-generated constructor stub
this.brandy=brandy;
this.type=type;
this.color=color;
}
/*
public Reference getReference() throws NamingException {
// TODO Auto-generated method stub
Reference ref=new Reference(this.getClass().getName());
return ref;
}
*/
public String getBrandy() {
return brandy;
}
public void setBrandy(String brandy) {
this.brandy = brandy;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getColor() {
return color;
}
public void setColor(String color) {
this.color = color;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -