192k views
8 votes
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 will call itself.
c) This method calls a public method in its subclass.
d) This method calls a public method in its subclass.
e) This method calls a private method in its superclass
f) This method calls a private method in its superclass
g) This method calls a public method in its superclass.

1 Answer

7 votes
A is the answer I got a call back at the park today and then we walked in and got it to the park where the store got to
User Stanislav Lukyanov
by
2.9k points