Class Course

java.lang.Object
  |
  +--Course

public class Course
extends java.lang.Object

A college course in which students get grades.


Constructor Summary
Course(java.lang.String title)
          Constructs a course.
 
Method Summary
 Grade getGrade()
          Gets the course grade.
 java.lang.String getTitle()
          Gets the course title.
 void setGrade(Grade g)
          Sets the course grade.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Course

public Course(java.lang.String title)
Constructs a course.
Parameters:
title - the course title
Method Detail

getTitle

public java.lang.String getTitle()
Gets the course title.
Returns:
the course title

setGrade

public void setGrade(Grade g)
Sets the course grade.
Parameters:
g - the grade for the course

getGrade

public Grade getGrade()
Gets the course grade.
Returns:
the grade for the course