Question: Assume you have written a method with the header void myMethod(num a, string b). Which of the following is a correct method call? a. MyMethod(12)

Assume you have written a method with the header void myMethod(num a, string b). Which of the following is a correct method call?

a. MyMethod(12)

b. MyMethod("Goodbye")

c. MyMethod(12, "Hello")

d. It is impossible to tell.

Step by Step Solution

3.46 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

c M... View full answer

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 Programming Logic & Design Questions!