Skip to content

Commit

Permalink
Remove the abstraction of Storage Class
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Y-Yan committed Nov 14, 2023
1 parent 647881b commit 679ebd0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/main/java/seedu/duke/storagefile/Storage.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import java.io.FileWriter;
import java.io.IOException;

abstract class Storage {
class Storage {

protected File dir;
protected File textFile;
Expand All @@ -14,12 +14,5 @@ public Storage(String dirName, String textFileName) {
dir = new File(dirName);
textFile = new File(textFileName);
}
public abstract void writeToStorage(int firstInt, int secondInt, String[] stringArray, int thirdInt)
throws IOException;

public abstract void deleteFromStorage(int firstInt, int secondInt, String[] stringArray, int thirdInt)
throws IOException;

public abstract void updateInStorage(int firstInt, int secondInt, String[] firstStringArray, int thirdInt,
String[] secondStringArray, int fourthInt) throws IOException;
}

0 comments on commit 679ebd0

Please sign in to comment.