//Error: class Car is public, should be declared in a file named Car.java
What are the variables you are passing in? the first four are Strings. the last, passenger_no is an int.
Car c = new Car (reg, make, model, colour, passenger_no);
Originally posted by joanne robinson:
sorry, that should heve been a