Java程序设计,创建一个汽车类CarModel.java,
答案:3 悬赏:30 手机版
解决时间 2021-11-10 06:45
- 提问者网友:练爱
- 2021-11-09 08:55
Java程序设计,创建一个汽车类CarModel.java,
最佳答案
- 五星知识达人网友:像个废品
- 2021-11-09 09:01
public class CarManufactory {
private String style;
private String color;
private String category;
public CarManufactory(String style, String color, String category) {
super();
this.style = style;
this.color = color;
this.category = category;
}
public CarManufactory() {
super();
// TODO Auto-generated constructor stub
}
public String getStyle() {
return style;
}
public String getColor() {
return color;
}
public String getCategory() {
return category;
}
}
private String style;
private String color;
private String category;
public CarManufactory(String style, String color, String category) {
super();
this.style = style;
this.color = color;
this.category = category;
}
public CarManufactory() {
super();
// TODO Auto-generated constructor stub
}
public String getStyle() {
return style;
}
public String getColor() {
return color;
}
public String getCategory() {
return category;
}
}
全部回答
- 1楼网友:舊物识亽
- 2021-11-09 10:10
public class CarModel{
private String style;
private String color;
private String category;
public CarModel(String style, String color, String category) {
this.style = style;
this.color = color;
this.category = category;
}
public CarModel(){}
public String getStyle() {
return style;
}
public String getColor() {
return color;
}
public String getCategory() {
return category;
}
}
private String style;
private String color;
private String category;
public CarModel(String style, String color, String category) {
this.style = style;
this.color = color;
this.category = category;
}
public CarModel(){}
public String getStyle() {
return style;
}
public String getColor() {
return color;
}
public String getCategory() {
return category;
}
}
- 2楼网友:山河有幸埋战骨
- 2021-11-09 09:58
public class CarManufactory{
private String style;
private String color;
private String category;
public String getStyle(){
return this.style;
}
public String getColor(){
return this.color;
}
public String getCategory(){
return this.category;
}
public CarManufactory(String style,String color,String category){
this.style = style;
this.color = color;
this.category = category;
}
public CarManufactory(){}
}
private String style;
private String color;
private String category;
public String getStyle(){
return this.style;
}
public String getColor(){
return this.color;
}
public String getCategory(){
return this.category;
}
public CarManufactory(String style,String color,String category){
this.style = style;
this.color = color;
this.category = category;
}
public CarManufactory(){}
}
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯