Tag view

#api-design

Cross-subject tag search for related interview cards.

Clear

Results update as you type. Press / to jump straight into search.

Tagged with api-design

2 cards

Python Medium Theory

Instance methods, class methods, static methods, `@property`, setters, deleters, and dataclasses

Instance methods work with object state, class methods work with the class, static methods are utility functions inside the namespace, properties expose attribute-style access, and dataclasses reduce boilerplate.

  • Choose method type based on state access
  • Properties can validate or compute values
  • Dataclasses generate common methods automatically

Instance methods, class methods, static methods, `@property`, setters, deleters, and dataclasses