public class Vehicle {
/**
* license number of the vehicle
*/
private String licNumber;
/**
* type of the vehicle
*/
private String type;
/**
* The model of the vehicle.
*/
private int year;
/**
* Comments about this vehicle.
*/
private String comment;
public Vehicle(){
}
/**
* Vehicle constructor
* @param _licNumber license number of the vehicle
* @param _type Type of the vehicle
* @param _year The model of the vehicle
* @param _comment Comments about this vehicle
*/
public Vehicle(String _licNumber, String _type, int _year, String _comment){
licNumber = _licNumber;
type = _type;
year = _year;
comment = _comment;
}
/**
* @return the licNumber
*/
public String getLicNumber() {
return licNumber;
}
/**
* @param licNumber the licNumber to set
*/
public void setLicNumber(String licNumber) {
this.licNumber = licNumber;
}
/**
* @return the type
*/
public String getType() {
return type;
}
/**
* @param type the type to set
*/
public void setType(String type) {
this.type = type;
}
/**
* @return the year
*/
public int getYear() {
return year;
}
/**
* @param year the year to set
*/
public void setYear(int year) {
this.year = year;
}
/**
* @return the comment
*/
public String getComment() {
return comment;
}
/**
* @param comment the comment to set
*/
public void setComment(String comment) {
this.comment = comment;
}
/**
* license number of the vehicle
*/
private String licNumber;
/**
* type of the vehicle
*/
private String type;
/**
* The model of the vehicle.
*/
private int year;
/**
* Comments about this vehicle.
*/
private String comment;
public Vehicle(){
}
/**
* Vehicle constructor
* @param _licNumber license number of the vehicle
* @param _type Type of the vehicle
* @param _year The model of the vehicle
* @param _comment Comments about this vehicle
*/
public Vehicle(String _licNumber, String _type, int _year, String _comment){
licNumber = _licNumber;
type = _type;
year = _year;
comment = _comment;
}
/**
* @return the licNumber
*/
public String getLicNumber() {
return licNumber;
}
/**
* @param licNumber the licNumber to set
*/
public void setLicNumber(String licNumber) {
this.licNumber = licNumber;
}
/**
* @return the type
*/
public String getType() {
return type;
}
/**
* @param type the type to set
*/
public void setType(String type) {
this.type = type;
}
/**
* @return the year
*/
public int getYear() {
return year;
}
/**
* @param year the year to set
*/
public void setYear(int year) {
this.year = year;
}
/**
* @return the comment
*/
public String getComment() {
return comment;
}
/**
* @param comment the comment to set
*/
public void setComment(String comment) {
this.comment = comment;
}
No comments:
Post a Comment