Ask Question
9 December, 11:04

Which of the following statements is false?

a. An object's attributes are specified as part of the object's class.

b. A bank-account object would likely have a balance attribute that represents the amount of money in the account.

c. Each bank-account object knows the balance in the account it represents, but not the balances of the other accounts in the bank.

d. Attributes are specified by the class's methods.

+1
Answers (1)
  1. 9 December, 11:15
    0
    The correct answer is d. Attributes are specified by the class's methods.

    Explanation:

    Attributes are the individual characteristics that differentiate one object from another and determine its appearance, state or other qualities. Attributes are stored in variables called instance, and each particular object can have different values for these variables. Instance variables, also called data members, are declared in the class but their values are fixed and changed in the object. In addition to the instance variables there are class variables, which apply to the class and all its instances.

    Attributes, also called data or member variables are portions of information that an object possesses or knows about itself. A class can have any number of attributes or have none. They are declared with an identifier and the corresponding type of data.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which of the following statements is false? a. An object's attributes are specified as part of the object's class. b. A bank-account object ...” in 📗 Business if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers