For this quiz, you are given a Java program, that is made up of three class files: Quiz4.java, Mother.java, and Baby.java. Your task is to draw the memory model diagram for the code that has been given to you. Note that you do not actually have to run this program in CodeWarrior. You can just look at the code to determine what to put in your memory model diagram.
You need to draw the memory model diagram at two points in the execution of the program. There are two blank memory model diagrams provided below that you should fill in by hand. The static space has been completed for you, but you need to fill in the method stack and the object space. Note that there are six boxes in the object space. This is exactly how many boxes you will need here. You will need to add more boxes in the method stack. Only the box for the main method has been provided.
When you are drawing your memory model diagrams, use the smaller boxes in the object space for the String objects (there are 3 of them), and use the other three boxes for the other objects. You do not need to write the method prototypes in the object boxes in the object space (although this actually is a requirement of the memory model).
You must submit the quiz 4 cover page. Also print this page, update the memory model diagram by hand, and submit it. Staple the cover page on top of the printout of this page.