What are attributes?

Advertisement

  • Attributes are long-form version of an if/else statement, 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.
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend