Class Pencil

java.lang.Object
  extended by Pencil

public class Pencil
extends java.lang.Object

A wooden pencil.

Version:
1.0 2013-04-10
Author:
Victoria Windsor

Constructor Summary
Pencil()
          Constructs a pencil with default values.
 
Method Summary
 java.lang.String getManufacturer()
          Returns the manufacturer of this pencil.
 void setHardness(java.lang.String hardness)
          Sets the hardness of this pencil
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pencil

public Pencil()
Constructs a pencil with default values.

Method Detail

getManufacturer

public java.lang.String getManufacturer()
Returns the manufacturer of this pencil.

Returns:
the manufacturer of this pencil

setHardness

public void setHardness(java.lang.String hardness)
Sets the hardness of this pencil

Parameters:
hardness - a grade in the series 9H, 8H, …, 2H, H, F, HB, B, 2B, …, 8B, 9B