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