Methods Summary |
---|
public java.lang.String | getMake()
return _make;
|
public int | getMiles()
return _miles;
|
public java.lang.String | getModel()
return _model;
|
public java.lang.String | getOwnerEmail()
return _ownerEmail;
|
public java.lang.String | getOwnerName()
return _ownerName;
|
public int | getyear()
return _year;
|
public void | setMake(java.lang.String make)
_make = make;
|
public void | setMiles(int miles)
_miles = miles;
|
public void | setModel(java.lang.String model)
_model = model;
|
public void | setOwnerEmail(java.lang.String ownerEmail)
_ownerEmail = ownerEmail;
|
public void | setOwnerName(java.lang.String ownerName)
_ownerName = ownerName;
|
public void | setYear(int year)
_year = year;
|
public java.lang.String | toString()
String result = String.valueOf(_year) + " " +
_make + " " + _model +
" with " + String.valueOf(_miles) +
" miles:" +
"\n Owned by " + _ownerName + "(" +
_ownerEmail + ")";
return result;
|