another prob

From: acerpower (Dhanesh81_at_intnet.mu)
Date: 06/30/04


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



Relevant Pages

  • Looking for recent California Auto purchasers
    ... I'm trying to get a copy of a recent sales contract from california ... I haven't bought a car in six years, so I like to be familiar with the ... If you woul be so kind to assist, I would be most grateful. ...
    (misc.consumers)
  • Recent California Auto Purchasers
    ... I haven't bought a car in six years, so I like to be familiar with the ... (Or, if anyone knows where I can find such a form online (doubtful), ... If you woul be so kind to assist, I would be most grateful. ...
    (rec.autos.misc)
  • Re: Keyboard Fails in Terminal
    ... grateful if somebody would enlighten me as to why I cant enter a ... root password in terminal ... my car won't get me to work any more. ...
    (alt.os.linux.suse)
  • Re: Off Road storing of untaxed vehicles
    ... > grateful, not proud! ... > car in front, two other cars squeeze into it. ... I have a feeling it would take me quite some time to get used to M25 driving ...
    (uk.business.agriculture)
  • Re: Private Constructor
    ... > public static string Name ... > I intended to create an enumeration class similar to Color ... Car car = car.NISSAN; ...
    (microsoft.public.dotnet.languages.csharp)