public class Car extends Object
Modifier and Type | Field and Description |
---|---|
private double |
cost |
private long |
id |
private String |
make |
private String |
model |
private int |
year |
Modifier and Type | Method and Description |
---|---|
double |
getCost() |
long |
getId() |
String |
getMake() |
String |
getModel() |
int |
getYear() |
void |
setCost(double cost) |
void |
setMake(String make) |
void |
setModel(String model) |
void |
setYear(int year) |
String |
toString() |
private long id
private String make
private String model
private int year
private double cost
public long getId()
public String getMake()
public void setMake(String make)
public String getModel()
public void setModel(String model)
public int getYear()
public void setYear(int year)
public double getCost()
public void setCost(double cost)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.