Ask Question
22 January, 18:40

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. 22 January, 22:07
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers