21 lines
534 B
Java
21 lines
534 B
Java
/**
|
|
* Answer to the questions.
|
|
*
|
|
* - Q: What kinds of tests can you write inside the testCourse method?
|
|
*
|
|
* - A: You can inherit the Couse class to annonymous class and override the
|
|
* isRequired() method.
|
|
*
|
|
* - Q: What kinds of tests can you write inside the testMajorRequired method?
|
|
*
|
|
* - A: You can first create a MajorRequired object with null preRequisite and
|
|
* do the test as normal.
|
|
*/
|
|
|
|
public class Start {
|
|
public static void main(String[] args) {
|
|
Course.testCourse();
|
|
MajorRequired.testMajorRequired();
|
|
}
|
|
}
|