What is an instance method?

Advertisement

  • Instance methods can modify the state of an instance or the state of its parent class.
  • Instance methods hold data related to the instance.
  • An instance method is any class method that doesn’t take any arguments.
  • An instance method is a regular function that belongs to a class, but it must return None.
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