itcs3146-project/baseAlgorithm.java

17 lines
297 B
Java
Raw Normal View History

public class baseAlgorithm{
2012-10-30 20:26:34 -04:00
int[] memoryBlock;
2012-10-30 20:26:34 -04:00
void baseAlgorithm(int memorySize){
/* Constructor needed for each algorithm */
memoryBlock = new int[memorySize];
}
void allocate(){
2012-10-30 20:26:34 -04:00
/* This method to be overloaded by each algorithm */
}
void deallocate(){
}
2012-10-30 20:26:34 -04:00
}