/** * Write a description of class Memory here. * * @author (Roy Mpanju) * @version (a version number or a date) */ public class Memory extends Operations { Double numberInMemory = 0.0; /** * An example of a method - replace this comment with your own * * @param y a sample parameter for a method * @return the sum of x and y */ public Double storeInMemory(Double currentDisplay) { // put your code here numberInMemory = currentDisplay; return numberInMemory; } public Double clearMemory(){ return numberInMemory = 0.0; } public Double retrieveFromMemory(){ return numberInMemory; } //public String }