university
Class UndergraduateFactory

java.lang.Object
  extended by university.PersonFactory
      extended by university.StudentFactory
          extended by university.UndergraduateFactory
All Implemented Interfaces:
java.lang.Cloneable, Build

public class UndergraduateFactory
extends StudentFactory
implements Build, java.lang.Cloneable

Builds a Undergradute student from the information entered in from the console.


Field Summary
protected  UndergraduateLevel level
           
 
Fields inherited from class university.PersonFactory
address, console, gender, name, unit
 
Constructor Summary
UndergraduateFactory()
          Creates a new instance of BuildUndergraduate
 
Method Summary
 Person build()
          Create a new Person.
 
Methods inherited from class university.StudentFactory
buildStudentInfo
 
Methods inherited from class university.PersonFactory
buildPersonInfo, createPerson
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

level

protected UndergraduateLevel level
Constructor Detail

UndergraduateFactory

public UndergraduateFactory()
Creates a new instance of BuildUndergraduate

Method Detail

build

public Person build()
Description copied from interface: Build
Create a new Person.

Specified by:
build in interface Build
Returns:
Person The Person that was created.