Files
oop/assignment4/Question3/Start.java
2022-04-21 15:43:38 +08:00

27 lines
761 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.
*
* - Q: What kinds of tests can you write inside the testMajorElective method?
*
* - A: You can first create a MajorElective object with null preRequisite and
* do the test as normal.
*/
public class Start {
public static void main(String[] args) {
Course.testCourse();
MajorRequired.testMajorRequired();
MajorElective.testMajorElective();
}
}