FileDocCategorySizeDatePackage
Vehicle.javaAPI DocExample462Wed Nov 21 16:10:48 GMT 2001myprojects.vectorexample

Vehicle.java

package myprojects.vectorexample;


public class Vehicle {
	private String make;
	private double weight;
	private double length;
	
	public void displayData() {
		System.out.println("make = "+make);
		System.out.println("weight = "+weight);
		System.out.println("length = "+length);
		System.out.println("  ");
	}
	public Vehicle(String make, double weight, double length) {
		this.make=make;
		this.weight=weight;
		this.length=length;
	}
	
}