1/11
Vocabulary flashcards covering core object-oriented programming concepts, terminology, and modules from the Python Objects lecture notes.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Class
A template or blueprint that defines the abstract characteristics of a thing, including its attributes, fields, or properties and its behaviors or methods.
Object
A bit of self-contained code and data representing a particular instance of a class.
Method
A function or defined capability within a class that describes what an object can do.
Attribute
A variable or bit of data stored within a class or object.
Instance
The actual object created at runtime from a class template.
State
The set of values of the attributes of a particular object.
Constructor
A special block of statements in a class called when an object is created, primarily used to set up instance variables to their initial values.
Destructor
A special block of code or method called at the moment an object is destroyed or discarded.
Inheritance
The ability to extend an existing parent class to create a new child class that inherits all capabilities of the parent and adds its own.
Subclass
A more specialized version of a class that inherits attributes and behaviors from its parent class and can introduce its own.
dir() command
A Python function that lists the capabilities and methods of an object.
sqlite3 module
A Python module written by Gerhard Häring that provides a SQL interface compliant with the DB-API 2.0 specification described by PEP 249 for SQLite.