Car - } public String getMaker(){ return make; } public...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
public class Car { private Driverr owner; private String make; private int year; private int vehicleID; private double price; public Car() { make="Unassigned"; year=0000; vehicleID= 00000; price = 0.0; } public void setOwner(Driverr owne){ owner = owne; } public Driverr getOwner(){ return owner; } public void setMaker(String maker){ make = maker;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } public String getMaker(){ return make; } public void setYear(int yearr){ year = yearr; } public int getYear(){ return year; } public void setVehicleId(int VID){ vehicleID = VID; } public int getVehicleId(){ return vehicleID; } public void setPrice(double pric){ price = pric; } public double getPrice(){ return price; } }...
View Full Document

This note was uploaded on 05/01/2008 for the course ECE 172 taught by Professor Olabe during the Spring '08 term at Christian Brothers.

Page1 / 2

Car - } public String getMaker(){ return make; } public...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online