Consider the following code snippet that appears in a subclass:

public void deposit(double amount)

{

transactionCount ++;

deposit(amount);

}

Which of the following statements is true?

a. This method will call itself.

b. This method calls a public method in its subclass.

c. This method calls a private method in its superclass.

d. This method calls a public method in its superclass.

Q&A Education