diff --git a/baseAlgorithm.java b/baseAlgorithm.java index 044034a..e19d944 100644 --- a/baseAlgorithm.java +++ b/baseAlgorithm.java @@ -1,18 +1,16 @@ public class baseAlgorithm{ - int memoryBlock[]; + int[] memoryBlock; - void baseAlgorithm(){ - + void baseAlgorithm(int memorySize){ + /* Constructor needed for each algorithm */ + memoryBlock = new int[memorySize]; } void allocate(){ - + /* This method to be overloaded by each algorithm */ } void deallocate(){ } - void createThread(){ - - } -} \ No newline at end of file +}