public final class BlobHand extends Hand
{
int radius; // the radius of my blob
public means that any other class in any other
package may use this class
protected (only usable by
other classes in the same package)private (only usable by other classes
in the same file)final means that no class may specialise
('extend') this class
class means it's a classBlobHand is the name of this classextends Hand means that a BlobHand is a kind
of Hand, and inherits all Hand's behaviours and
propertiesradius is an instance variable of
BlobHand. Every instance (object) in the BlobHand class has a
radius. It doesn't have to be the same radius.BlobHand must be declared in a file
called BlobHand.java
give me feedback on this page // show previous feedback on this page