Class Student

java.lang.Object
  |
  +--Student

public class Student
extends java.lang.Object

A student who takes courses.


Constructor Summary
Student()
           
 
Method Summary
 void add(Course c)
          Adds a course that this student takes.
 void drop(Course c)
          Drops a course.
 Course[] getCourses()
          Gets all courses that the student is taking.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Student

public Student()
Method Detail

add

public void add(Course c)
Adds a course that this student takes.
Parameters:
c - the course that the student is taking.

drop

public void drop(Course c)
Drops a course.
Parameters:
c - the course that the student is dropping.

getCourses

public Course[] getCourses()
Gets all courses that the student is taking.
Returns:
the courses that the student is taking.