filmov
tv
Java Practice It | Self-Check 8.9: methodCallSyntax | classes, encapsulation, instance methods

Показать описание
More practice its:
Problem:
Question:
Suppose a method in the BankAccount class is defined as:
public double computeInterest(int rate)
And suppose the client code has declared a BankAccount variable named acct.
Which of the following would be a valid call to the above method?
Problem:
Question:
Suppose a method in the BankAccount class is defined as:
public double computeInterest(int rate)
And suppose the client code has declared a BankAccount variable named acct.
Which of the following would be a valid call to the above method?