Ask Question
9 December, 18:19

Which of these statements is not true about the method that follows? public void deposit (Date date, double amt) { this. balance + = amt; this. printDeposit (accountNum, date, amt); } a. printDeposit is a static method b. printDeposit is located in the same class c. balance is an instance variable d. accountNum is declared outside of the method

+1
Answers (1)
  1. 9 December, 22:08
    0
    A

    Explanation:

    A static method is a method which is common for all objects. it is shared method between different objects. we can call that method with class name.

    in the given code we are calling printDeposit () method using this. "this" keyword always represents that current object. so it is used to call instance method.

    this. printDeposit (accountNum, date, amt);

    The Answer is A
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Which of these statements is not true about the method that follows? public void deposit (Date date, double amt) { this. balance + = amt; ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers