- Attributes are long-form version of an
if/elsestatement, used when testing for equality between objects. - Attributes are a way to hold data or describe a state for a class or an instance of a class.
- Attributes are strings that describe characteristics of a class.
- Function arguments are called “attributes” in the context of class methods and instance methods.
Correct Answer:
- Attributes are a way to hold data or describe a state for a class or an instance of a class.
Explanation Attributes defined under the class, arguments goes under the functions. arguments usually refer as parameter, whereas attributes are the constructor of the class or an instance of a class.