edu.ucsb.cs56.S11.bpmccurdy.lab03
Class Student

java.lang.Object
  extended by edu.ucsb.cs56.S11.bpmccurdy.lab03.Student

public class Student
extends java.lang.Object

A student has a name and a perm number.

Version:
lab04 for CS56, Spring 2011
Author:
Phill Conrad, and Ben McCurdy

Constructor Summary
Student(java.lang.String theName, int thePermNumber)
          Constructor for objects of class Student
 
Method Summary
 java.lang.String getName()
          Get the name
 int getPermNumber()
          Get the perm number
 void setName(java.lang.String newName)
          Set the name
 void setPermNumber(int newPermNumber)
          Set the permNumber
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Student

public Student(java.lang.String theName,
               int thePermNumber)
Constructor for objects of class Student

Parameters:
theName - the name of the student
thePermNumber - the perm number for the student
Method Detail

getName

public java.lang.String getName()
Get the name

Returns:
name of student

getPermNumber

public int getPermNumber()
Get the perm number

Returns:
the perm number of the student

setName

public void setName(java.lang.String newName)
Set the name

Parameters:
newName - new name of the student

setPermNumber

public void setPermNumber(int newPermNumber)
Set the permNumber

Parameters:
newPermNumber - new perm number of the student

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object