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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!