Attributes
Attributes
- An attribute is a property or characteristic of a class
- At any time, each instance of the class has an attribute value for every attribute defined for that class
- For the Bank Account class:
- Account Number 123456
- Name of Bank Wells Fargo Bank
- Name of Owner Hadar Ziv
- Account Balance $1234.56
- Class attributes depend on your viewpoint
- Example: attributes of Car