Basic HTML version of Foils prepared Aug 14 1997

Foil 8 Method design patterns for Properties

From JavaBeans Examples UC Web applications Certificate -- Aug 11,14 97. by Nancy McCracken


1 Giving a set method defines a write property, and a get method defines a read property, according to this pattern: public void set&#060PropertyName&#062(&#060PropertyType&#062 value); public &#060PropertyType&#062 get&#060PropertyName&#062 ( );
2 If the property type is boolean, the get() method can be replaced or augmented by a method: public boolean is&#060PropertyName&#062 ( );

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Jan 8 1998