diff --git a/README.md b/README.md index e759bf3..6bd8a11 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ * Is the **blank** object mutable or immutable? How can you tell? ```text -PUT ANSWER TO #2 HERE +Mutable. This can be modified compared to Immutable which can't. Changes are made to p.x and p.y. ``` ```java @@ -47,7 +47,8 @@ public class Puzzler { * Explain how the return values from #3 and #4 differ. ```text -PUT ANSWER TO #5 HERE +#3 finds the center of a rectangle using x and y points. +#4 returns a double value using the p1 and p2 points, because it is 2D. ``` ```java @@ -87,14 +88,18 @@ Recall that aliases are two variables that refer to the same object. * Put the output in the text block below ```text -PUT ANSWER TO #2 HERE +(5, 8) +(6, 9) ``` 3. At the end of main, are p1 and p2 aliased? Why or why not? * Put your answer in the text block below ```text -PUT ANSWER TO #3 HERE +No. Trick question almost. p1 and p2 +do not access the same memory location, +even if they're both in Point. p1 is in +the center, p2 is only for after it's growth. ``` ```java @@ -177,4 +182,4 @@ Follow these steps for submission: 2. Commit your working code for the exercises to your local copy/Feature01 branch. 3. Push it to your Remote/origin branch (i.e., GitHub: Feature01 -> origin/Feature01). 4. Issue a Pull request to my instructor repo. -5. Make sure to COPY the Pull request URL and submit it for the lab/assignment in Canvas. \ No newline at end of file +5. Make sure to COPY the Pull request URL and submit it for the lab/assignment in Canvas.