FileDocCategorySizeDatePackage
Student.javaAPI DocExample856Sat Apr 24 08:21:58 BST 2004com.oreilly.tiger.ch03

Student

public class Student extends Object

Fields Summary
private String
firstName
private String
lastName
private Grade
grade
Constructors Summary
public Student(String firstName, String lastName)

    this.firstName = firstName;
    this.lastName = lastName;
  
Methods Summary
public voidassignGrade(Grade grade)

    this.grade = grade;
  
public java.lang.StringgetFirstName()

    return firstName;
  
public java.lang.StringgetFullName()

    return new StringBuffer(firstName)
           .append(" ")
           .append(lastName)
           .toString();
  
public GradegetGrade()

    return grade;
  
public java.lang.StringgetLastName()

    return lastName;
  
public voidsetFirstName(java.lang.String firstName)

    this.firstName = firstName;
  
public voidsetLastName(java.lang.String lastName)

    this.lastName = lastName;