58.9k views
1 vote
Which of the following statements is false? 1. An object's attributes are specified as part of the object’s class. 2. A bank-account object would likely have a balance attribute that represents the amount of money in the account. 3. Each bank-account object knows the balance in the account it represents, but not the balances of the other accounts in the bank. 4. Attributes are specified by the class’s methods.

User Vasim
by
4.9k points

1 Answer

3 votes

Answer:

Statement 4. is absolutely wrong

Step-by-step explanation:

Attributes are specified by the class's methods. They are rather defined in classes by variables.

User Gio Borje
by
4.9k points