FileDocCategorySizeDatePackage
Car.javaAPI DocExample1909Sun Dec 14 22:47:38 GMT 2003oreilly.hcj.constants

Car

public class Car extends Object
Demonstrates aspects of bit fields.
author
Robert Simmons jr. (kraythe)
version
$Revision: 1.3 $

Fields Summary
public static final int
POWER_WINDOWS
A constant to represent the option of power windows.
public static final int
POWER_LOCKS
A constant to represent the option of power door locks.
public static final int
SNOW_TIRES
A constant to represent the option of snow tires.
public static final int
STANDARD_TIRES
A constant to represent the option of standard tires.
public static final int
CRUISE_CONTROL
A constant to represent the option of cruise control.
public static final int
CD_PLAYER
A constant to represent the option of a CD player.
public static final int
AIR_CONDITIONING
A constant to represent the option of air conditioning.
private int
options
Holds the options.
Constructors Summary
public Car()
Creates a new Car object.


	      	 
	  
	
Methods Summary
public intgetOptions()
Setter for the property options.

return
options The new options.

		return this.options;
	
public voidsetOptions(int options)
Setter for the property options.

param
options The new options.

		this.options = options;