public class MyClass
{
public void myMethod(int x, SavingsAccount sa)
{
x = 14;
sa.setBalance(1000);
}
}
Write a snippet of code that calls the method. Draw a picture
of the stack and the heap. You can assume the SavingsAccount
class has a zero-argument constructor.