package com.qst;
import java.util.Date;
public class Transport {
private String id;
private Date time;
private String address;
private int Type;
private String handler;
private String reciver;
private int transportType;
public Transport(){
}
public Transport(String id,Date time,String address,int Type,String handler,String reciver,int transportType){
this.id=id;
this.time=time;
this.address =address;
this.Type =Type;
this .handler=handler;
this.reciver =reciver;
this.transportType =transportType;
}
public int getType() {
return Type;
}
public void setType(int type) {
Type = type;
}
public String toString(){
return id+","+time+","+address+","+this.getType()+","+handler+","+transportType;
}
}
请问在最后public String toString中直接用+Type和+this.getType()有什么区别吗?