asked 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.

asked
User Vasim
by
7.5k 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.

answered
User Gio Borje
by
7.8k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.