lab 13
This commit is contained in:
15
lab/lab13/Question3/Controller.java
Normal file
15
lab/lab13/Question3/Controller.java
Normal file
@@ -0,0 +1,15 @@
|
||||
public class Controller {
|
||||
protected Model m;
|
||||
|
||||
public Controller(Model m) {
|
||||
this.m = m;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gracefully exits the program.
|
||||
*/
|
||||
protected void shutdown() {
|
||||
m.saveData();
|
||||
System.exit(0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user