FileDocCategorySizeDatePackage
ShowInitializers.javaAPI DocExample447Sun Dec 27 23:15:32 GMT 1998None

ShowInitializers

public class ShowInitializers extends Object
Just show use of initializers, and which ones need to be initialized.

Fields Summary
int
quantity
int
value
Constructors Summary
Methods Summary
public voiddoSomethingWith(int r)
This method is not shown in the course notes. It doesn't do anything with its input.

		
voidsetValue()

		// better style?
		  
			int rate;		// un-initialized by default
			doSomethingWith(rate);	// EXPECT COMPILE ERROR