Our first example: HelloBean!
To a standard hello world Java class, we add a (read/write) property by defining get and set functions in the correct pattern.
public class HelloBean extends java.applet.Applet
implements java.io.Serializable
{ String sname = “World”;
public void setName (String newname)
public String getName ( )
Class variable for value of property
Get and set methods define a property called Name with a value of type String