another prob
From: acerpower (Dhanesh81_at_intnet.mu)
Date: 06/30/04
- Previous message: Jean Charbonneau: "Re: Java array help (newbie)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Jun 2004 22:29:32 +0400
thanks a lot those who helped with the switch statements. I managed to do at
last do the program ,, Well I have another problem , If you please help me
again on this issue , I would be very grateful. I've written the problem but
I got sutck on 7th step of the assignment
below is the program
public class Car
{
public static final int model_M = 1;
public static final int model_MT = 2;
public static final int model_M2 = 3;
public static final int model_N2 = 4;
public static final int model_MT4 = 5;
public final int model;
public Car()
{
model = model_N2;
}
private boolean moonRoof = false;
private boolean tintedWindows= false;
protected int drive; // to keep track whether the car is of type
2 wheel drive or 4 wheel drive
I have reached till here
The 7th step states ( in the constructor of the car class pass the car model
as an argument ) , : what does this mean?
the 8th step = check the type of the car and assign whether it has tinted
windows or not and whether it has a moon roof or not and whether it has 2
wheel drive or 4 wheel drive...
I would be very grateful if you could please help me.
With thanks
Vimal
- Previous message: Jean Charbonneau: "Re: Java array help (newbie)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|