|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.pdx.cs399J.junit.Course
public class Course
This class represent a course taught at a university.
| Constructor Summary | |
|---|---|
Course(String department,
int number,
int credits)
Creates a new Course with a given name, taught in a
given department, and for a given number of credits |
|
| Method Summary | |
|---|---|
int |
getCredits()
Returns the number of credits that this course is worth |
String |
getDepartment()
Returns the department that offers this course |
int |
getNumber()
Returns the number of this course |
void |
setCredits(int credits)
Sets the number of credits that this course is worth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Course(String department,
int number,
int credits)
Course with a given name, taught in a
given department, and for a given number of credits
IllegalArgumentException - number is less than 100 or credits is less
than 0| Method Detail |
|---|
public void setCredits(int credits)
public int getCredits()
public String getDepartment()
public int getNumber()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||