public void depositdouble amount transactionCount deposita

public void deposit(double amount) { transactionCount ++; deposit(amount); }

Which of the following statements is true?

This method will call itself.

Solution

Could you please eloborate more and share the code as well?

Please clarify the requirement.

public void deposit(double amount) { transactionCount ++; deposit(amount); } Which of the following statements is true? This method will call itself. SolutionCo

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site