a4 close #6
This commit is contained in:
27
assignment4/Question4/Start.java
Normal file
27
assignment4/Question4/Start.java
Normal file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* 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();
|
||||
Base.testBase();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user