Question: Question 2 (2 points each, 8 points total) Base on the pseudocode below, answer the following questions. char myletter = 'A'; String myGrade = A;
Question 2 (2 points each, 8 points total) Base on the pseudocode below, answer the following questions. char myletter = 'A'; String myGrade = "A"; Subject mySubject = new Subject; mySubect.setGrade(myLetter, myGrade); public setGrade(char aletter, String Grade){ aLetter='F'; aGrade = "F"; After all the above code executes: myLetter has a value of myGrade has a value of because it was passed by because it was passed by so a copy was made. so it points to the same object. Question 3 (2 points each, 8 points total) For each of the following write 'p' for Parameter or 'A' for Argument and 'C' for call and 'H' for heading: myCar accelerate By(speedChange)://here speedChange is a and this is a method public void accelerateBy(int speedChange)://here speedChange is a and this is a method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
